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
"override_attributes": { | |
"nodejs": { | |
"install_method": "binary", | |
"version": "0.10.22", | |
"checksum_linux_arm-pi": "8a167e036e34e80627891d9ddc22dbd2306d39441f318d42104dcf6e704703a1" | |
} | |
} |
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
Something.prototype.aFunction = function() { | |
var _this = this | |
this.collection.forEach(_this.bFunction) | |
this.collection.forEach(function(item) { | |
_this.bFunction(item) | |
}) | |
} | |
Something.prototype.bFunction = function(item) { |
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
public static final Map<String, String> STATIC_MAP; | |
static { | |
Map<String, String> someMap = new HashMap<String, String>(); | |
someMap.put("hey", "you"); | |
someMap.put("what's", "up"); | |
STATIC_MAP = Collections.unmodifiableMap(someMap); | |
} | |
Set<String> someSet = new HashSet<String, String>(Arrays.asList("1", "2", "3")); |
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
public static final Map<String, String> STATIC_MAP; | |
static { | |
Map<String, String> someMap = new HashMap<String, String>(); | |
someMap.put("hey", "you"); | |
someMap.put("what's", "up"); | |
STATIC_MAP = Collections.unmodifiableMap(someMap); | |
} | |
Set<String> someSet = new HashSet<String, String>(Arrays.asList("1", "2", "3")); |
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
# attributes/default.rb | |
passtools = default["passtools-backend"] | |
passtools.what = 'what the fuck' | |
default["passtools-backend"].huh = 'heyo' | |
# recipes/default.rb | |
passtools = node["passtools-backend"] | |
node["passtools-backend"].huh # works | |
passtools.what # attribute what not defined |
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/sh | |
ps ax | grep fitbitd | grep -v 'grep' | awk '{ print $1 }' | xargs sudo kill -9 |
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
Hey hillman, hope everything is going caldwell. I knowshon you're bizzy as a miller, but | |
was wondering how to peyton you for your near champ-ionship. Also, super stokley to have | |
you be a fantasy base-ball prater this year. Hopefully you don't get upset and colquitt | |
after my team hits too many upper deckers against you or some other dreesen. Anyway, tell | |
those Nootsen cladys and Elway hello. | |
- Brock Osweiler | |
"Elvis has left the building!" |
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 com.urbanairship.util; | |
import android.util.SparseArray; | |
public class SparseStringArray extends SparseArray<String> { | |
public SparseStringArray() { | |
this(10); | |
} |
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
/** | |
* Returns an index for which {@link #valueAt} would return the | |
* specified key, or a negative number if no keys map to the | |
* specified value. | |
* Beware that this is a linear search, unlike lookups by key, | |
* and that multiple keys can map to the same value and this will | |
* find only one of them. | |
*/ | |
public int indexOfValue(E value) { | |
if (mGarbage) { |
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
/* | |
I've been writing tests for Android code that uses Handlers to communicate with background threads. | |
I couldn't get my callbacks to be called back to. | |
I got angry. | |
I finally found the solution...after way too much looking. | |
Here it is. | |
*/ | |
package com.caseycrites.android.testexample |
NewerOlder