This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "container/ring" | |
import "math/rand" | |
type Cell struct { | |
alive bool | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vex from 'vexflow'; | |
import React, {Component} from 'react'; | |
const { | |
Accidental, | |
Formatter, | |
Stave, | |
StaveNote, | |
Renderer, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## install Catalyst proprietary | |
sudo ntfsfix /dev/sda2 | |
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
sudo apt-get remove --purge fglrx* | |
sudo apt-get install linux-headers-generic | |
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo | |
sudo amdconfig --initial | |
## install build essentials | |
sudo apt-get install cmake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Backup, compress and normalize audio files from a BOSS RC-30 Loop Station | |
# | |
# Sequence: | |
# - dump audio content from the RC-30 | |
# - encode and normalize audio | |
# | |
# Dependencies: | |
# - your favourite external storage mounting tool, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Generates a Markdown changelog from GitHub release notes | |
See: | |
- http://keepachangelog.com/en/0.3.0/ | |
- https://developer.github.com/v3/ | |
""" | |
import json | |
from argparse import ArgumentParser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file add-jenkins-param.groovy | |
* @brief Adds a parameter to selected jobs on a Jenkins instance | |
* | |
* The parameter is then exposed as an environment variable. | |
*/ | |
import hudson.model.* | |
jobFilters = [ | |
"filter1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.model.FreeStyleProject | |
import hudson.model.Hudson | |
import hudson.tasks.Publisher | |
import org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder | |
import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript; | |
import org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry; | |
// Exclusion list for job names. Job names listed here will NOT have the groovy postbuild entry added. | |
def exclusion_list = ["some_job_that_doesnt_need_groovy_postbuild"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
Do Not Edit! --> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><A HREF="https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/-%20uid/TP40014508" ADD_DATE="1414706885" PRIVATE="0" TAGS="javascript,mac,osx,yosemite">JavaScript for Automation Release Notes</A> | |
<DD>This article describes JavaScript for Automation, a new feature in OS X Yosemite. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn split-seq [s] | |
"Extract a tail of all same elements: [1 1 0 0 0] -> [[1 1] [0 0 0]]" | |
(let [l (last s)] | |
(split-with #(not= l %) s))) | |
(defn recombine | |
"Distribute tail: [[1] [1] [1] [0] [0]] -> [[1 0] [1 0] [1]]" | |
([a b] [a b]) | |
([a b c] [a b c]) | |
([a b c & more] |