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
// wordle word list, yanked from the website. | |
wordlist = ['cigar', 'rebut', 'sissy', 'humph', 'awake', 'blush', 'focal', 'evade', 'naval', 'serve', 'heath', 'dwarf', 'model', 'karma', 'stink', 'grade', 'quiet', 'bench', 'abate', 'feign', 'major', 'death', 'fresh', 'crust', 'stool', 'colon', 'abase', 'marry', 'react', 'batty', 'pride', 'floss', 'helix', 'croak', 'staff', 'paper', 'unfed', 'whelp', 'trawl', 'outdo', 'adobe', 'crazy', 'sower', 'repay', 'digit', 'crate', 'cluck', 'spike', 'mimic', 'pound', 'maxim', 'linen', 'unmet', 'flesh', 'booby', 'forth', 'first', 'stand', 'belly', 'ivory', 'seedy', 'print', 'yearn', 'drain', 'bribe', 'stout', 'panel', 'crass', 'flume', 'offal', 'agree', 'error', 'swirl', 'argue', 'bleed', 'delta', 'flick', 'totem', 'wooer', 'front', 'shrub', 'parry', 'biome', 'lapel', 'start', 'greet', 'goner', 'golem', 'lusty', 'loopy', 'round', 'audit', 'lying', 'gamma', 'labor', 'islet', 'civic', 'forge', 'corny', 'moult', 'basic', 'salad', 'agate', 'spicy', 'spray', 'essay', 'fjord', 'sp |
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
body, #stylus-popup { | |
background-color: #292929; | |
color: #e6e6e6; | |
} | |
a, .disabled a:hover, select { | |
color: #e6e6e6; | |
} | |
input[type="checkbox"]:not(.slider) { | |
background-color: #404040; | |
} |
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
<application> | |
<component name="RainbowSettings"> | |
<option name="rainbowifyHTMLInsideJS" value="true" /> | |
<option name="version" value="5.1" /> | |
<option name="lightRoundBracketsColors"> | |
<array> | |
<option value="0x263238" /> | |
<option value="0x455a64" /> | |
<option value="0x607d8b" /> | |
<option value="0x90a4ae" /> |
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
def dir = new File('path_to_sdk') | |
def licenses = new File(dir, 'licenses') | |
if (!licenses.exists()) licenses.mkdir() | |
dir.listFiles().each { println it } | |
def pw = new PrintWriter(new File(licenses, 'android-sdk-license')) | |
pw.println('8933bad161af4178b1185d1a37fbf41ea5269c55') |
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
var commands = []; | |
commands.push('mkdir "' + TralbumData.current.title + '"'); | |
commands.push('cd "' + TralbumData.current.title + '"'); | |
TralbumData.trackinfo.forEach(function (track, index) { | |
if (track.file) { | |
var href = track.file['mp3-128']; |
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
package main | |
import ( | |
logging "github.com/op/go-logging" | |
"io/ioutil" | |
"log" | |
"os" | |
"testing" | |
) |
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
OkHttpClient createClient() { | |
final OkHttpClient client = new OkHttpClient(); | |
// ... | |
client.networkInterceptors().add(chain -> { | |
Request request = chain.request(); | |
if (DEBUG) { | |
log(request); | |
} else { | |
String protocolPrefix = request.isHttps() ? "S" : ""; | |
Log.i(TAG, String.format("---> HTTP%s %s %s", |
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
/** | |
* Copyright 2016 Avinash Ananth Narayan R | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
#!/usr/bin/env bash | |
print_usage() { | |
echo " Usage: $0 [upper-threshold]" | |
} | |
if [ -z $1 ]; | |
then | |
echo "ERROR: upper threshold should be specified" | |
print_usage |
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
#!/usr/local/bin/coffee | |
SEC = 1000 | |
MIN = SEC * 60 | |
HOUR = MIN * 60 | |
DAY = HOUR * 24 | |
WEEK = DAY * 7 | |
if process.argv.length != 4 | |
console.log "Insufficient arguments to complete call" |
NewerOlder