Skip to content

Instantly share code, notes, and snippets.

"{
\"id\": \"533c80ffb1af69705a000077\",
\"email\": \"[email protected]\",
\"first_login\": false,
\"person_id\": \"bc3e4c73-006d-46fe-ada1-b6dd061ed253\",
\"person\": {
\"id\": \"bc3e4c73-006d-46fe-ada1-b6dd061ed253\",
\"data\": {
\"uuids\": [
\"bc3e4c73-006d-46fe-ada1-b6dd061ed253\",
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class GameOfThronesWarmup {
public static void main(String[] args) {
Scanner myScan = new Scanner(System.in);
#!/bin/bash
# This is a wrapper for adb. If there are multiple devices / emulators, this script will prompt for which device to use
# Then it'll pass whatever commands to that specific device or emulator.
# Run adb devices once, in event adb hasn't been started yet
BLAH=$(adb devices)
# Grab the IDs of all the connected devices / emulators
IDS=($(adb devices | sed '1,1d' | sed '$d' | cut -f 1 | sort))
public static void combine( String str ){
int length = str.length();
char[] instr = str.toCharArray();
StringBuilder outstr = new StringBuilder();
doCombine( instr, outstr, length, 0 );
}
public static void doCombine( char[] instr, StringBuilder outstr, int length, int start ){
for( int i = start; i < length; i++ ){
outstr.append( instr[i] );
com.onescreen.define(['util', 'jquery', 'client', 'sfc', 'css!./main.css'], function(util, $, client, SFC) {
function render(configObj, playlist) {
// Build UI
// Bind beacon event handlers
// Bind UI event handlers
}
return render;
});
com.onescreen.define(['util', 'jquery', 'client', 'sfc', 'css!./main.css'], function(util, $, client, SFC) {
function render(configObj, player) {
// Build UI
// Bind beacon event handlers
// Bind UI event handlers
}
return render;
});
var text = list[i].text.match(/[a-zA-Z0-9,.<>\\?!@#$%^&*()-=_+ "':;{}\[\]]*/, "");
if (text !== undefined) {
text = text.toString().replace(/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi, "");
} else {
break;
}
text = text.toString().replace(/^\s+|\s+$/g, "");
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Board: blaze_tablet
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Bootloader: unknown
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Brand: Amazon
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): CPU_ABI: armeabi-v7a
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): CPU_ABI2: armeabi
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Device: D01E
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Display: IML74K
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Fingerprint: Android/tate/tate:4.0.3/IML74K/7.4.3_user_4309320:user/release-keys
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Hardware: bowser
07-12 13:32:45.730: E/com.onescreen.popsugar(2779): Host: ip-10-166-55-151
chrome.tabs.executeScript(null, {file: "content_script.js"}, function() {
chrome.tabs.sendMessage(null, {
message: 'dom'
}, function(response){
console.log('response', response);
screenshot(response);
});
});
import sys
if __name__ == '__main__':
# check command line argument for 25 letters
if len(sys.argv[1]) == 25:
listOfLetters = list(sys.argv[1])
print listOfLetters
# better than readlines as this doesnt include \n
dictionary = open('/usr/share/dict/words', 'r').read().splitlines()