This file contains 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 oscP5.*; | |
import netP5.*; | |
// monome emulator size | |
static final int W = 32; | |
static final int H = 16; | |
// button size | |
static final int S = 16; |
This file contains 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
/** | |
* Foo key analyzer, treats int[] as a byte[] for bitwise comparisons. | |
*/ | |
private static class FooKeyAnalyzer implements KeyAnalyzer<AbstractFooKey> { | |
private static final int MSB = 1 << Byte.SIZE - 1; | |
private static int mask(final int bit) { | |
return MSB >>> bit; | |
} |
This file contains 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
// stomp using usb keyboard | |
#include <Bounce.h> | |
// map buttons to key presses | |
String key0 = "0"; | |
String key1 = "1"; | |
String key2 = "2"; | |
String key3 = "3"; | |
String key4 = "4"; |
This file contains 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
// stomp using usb midi | |
#include <Bounce.h> | |
// midi channel | |
int channel = 1; | |
// cc values | |
int cc_off = 1; | |
int cc_on = 65; |
This file contains 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
final class MyTask extends AbstractTask | |
{ | |
private final CyNetworkView networkView; | |
private final VisualStyle style; | |
private boolean lockedNodeView = false; | |
private boolean lockedEdgeView = false; | |
@Override | |
public void run(final TaskMonitor taskMonitor) | |
{ |
This file contains 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 java.awt.*; | |
import javax.swing.*; | |
import javax.swing.border.*; | |
import javax.swing.event.*; | |
import rwmidi.*; | |
public final class SwingSliderMidi extends JPanel implements Runnable { | |
public SwingSliderMidi() { | |
super(); |
This file contains 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 java.awt.*; | |
import java.util.*; | |
import javax.swing.*; | |
import javax.swing.border.*; | |
import javax.swing.event.*; | |
import oscP5.*; | |
public final class SwingSliderOsc extends JPanel implements Runnable { | |
public SwingSliderOsc() { |
This file contains 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
$ brew --config | |
HOMEBREW_VERSION: 0.9.5 | |
ORIGIN: https://github.com/Homebrew/homebrew.git | |
HEAD: 42050a0039b83f34b0793d60f7bb70f4a98d7229 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.9.4-x86_64 | |
Xcode: 5.1.1 | |
CLT: 5.1.0.0.1.1396320587 |
This file contains 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
$ mvn clean install -P scala-2.11 | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.bdgenomics.adam:adam-core_2.11:jar:0.15.1-SNAPSHOT | |
[WARNING] 'artifactId' contains an expression but should be a constant. @ org.bdgenomics.adam:adam-core_${scala.artifact.suffix}:[unknown-version], /Users/mheuer/working/fnothaft-adam/adam-core/pom.xml, line 10, column 15 | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.bdgenomics.adam:adam-apis_2.11:jar:0.15.1-SNAPSHOT | |
[WARNING] 'artifactId' contains an expression but should be a constant. @ org.bdgenomics.adam:adam-apis_${scala.artifact.suffix}:[unknown-version], /Users/mheuer/working/fnothaft-adam/adam-apis/pom.xml, line 11, column 15 | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.bdgenomics.adam:adam-cli_2.11:jar:0.15.1-SNAPSHOT |
This file contains 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
2015-04-14 10:29:00 ERROR MetricsSystem:96 - Sink class org.apache.spark.metrics.sink.MetricsServlet cannot be instantialized | |
java.lang.reflect.InvocationTargetException | |
at sun.reflect.GeneratedConstructorAccessor56.newInstance(Unknown Source) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) | |
at org.apache.spark.metrics.MetricsSystem$$anonfun$registerSinks$1.apply(MetricsSystem.scala:173) | |
at org.apache.spark.metrics.MetricsSystem$$anonfun$registerSinks$1.apply(MetricsSystem.scala:167) | |
at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98) | |
at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98) | |
at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226) |
OlderNewer