start new:
tmux
start new with session name:
tmux new -s myname
# | |
# Kill a running Android JDWP (debuggable) process without Eclipse | |
# | |
import sys | |
import socket | |
import struct | |
import uuid | |
import random | |
import subprocess |
#!/usr/bin/python -O | |
# Kill a running Android JDWP (debuggable) process without Eclipse. | |
import sys | |
import socket | |
import struct | |
import uuid | |
import random | |
import subprocess |
// By Jamie Chapman, @chappers57 | |
// License: open, do as you wish, just don't blame me if stuff breaks ;-) | |
public class ParseProxyObject implements Serializable { | |
private static final long serialVersionUID = 1L; | |
private HashMap<String, Object> values = new HashMap<String, Object>(); | |
public HashMap<String, Object> getValues() { | |
return values; |
platforms/ | |
plugins/ |
require 'ostruct' | |
require 'optparse' | |
require 'awesome_print' | |
$stdout.sync = true | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: change_phabricator_prefix.rb [options]" |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
var pubnub = { | |
'publish_key' : 'demo', | |
'subscribe_key' : 'demo' | |
}; | |
var bob_channel = "channel-bob"; | |
var sally_channel = "channel-sally"; | |
var message = { | |
"from" : "Sally", |
android.libraryVariants.all { variant -> | |
def name = variant.buildType.name | |
if (name.equals(com.android.builder.core.BuilderConstants.DEBUG)) { | |
return; // Skip debug builds. | |
} | |
def task = project.tasks.create "jar${name.capitalize()}", Jar | |
task.dependsOn variant.javaCompile | |
//Include Java classes | |
task.from variant.javaCompile.destinationDir | |
//Include dependent jars with some exceptions |