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/bash | |
| if [ -z "$1" ] ; then | |
| dir=. | |
| else | |
| dir=$1 | |
| fi | |
| grep -n -i --exclude '*.git*' 'todo' `find -L $dir -type f` |
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
| #![feature(macro_rules)] | |
| #![feature(slicing_syntax)] | |
| extern crate libc; | |
| extern crate native; | |
| use libc::{c_char, c_int, c_longlong}; | |
| use std::os; | |
| macro_rules! max( |
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
| var libraryKey = Object.keys(localStorage).filter(function(key) { return key.match(/library\d/) }); | |
| var lib = JSON.parse(localStorage[libraryKey]).songs | |
| var csv = [] | |
| for (var i in lib) { | |
| var song = lib[i] | |
| csv.push(song.D + "," + song.B + "," + song.J) | |
| } | |
| csv.join("\n") |
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
| Process 81039 stopped | |
| * thread #1: tid = 0x3cc235, 0x0000000100003d11 fucknuts`fucknuts::T.GetInteger::get_integer(self=0x00007fff5fbff9a8) + 49 at main.rs:15, queue = 'com.apple.main-thread', stop reason = step in | |
| frame #0: 0x0000000100003d11 fucknuts`fucknuts::T.GetInteger::get_integer(self=0x00007fff5fbff9a8) + 49 at main.rs:15 | |
| 12 | |
| 13 impl<T: Fn() -> isize> GetInteger for T { | |
| 14 fn get_integer(&self) -> isize { | |
| -> 15 self() | |
| 16 } | |
| 17 } | |
| 18 |
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
| #!/usr/bin/env bash | |
| set -e | |
| while getopts ":f" opt; do | |
| case $opt in | |
| f) | |
| running_containers=$(docker ps -q) | |
| if [ ! -z "$running_containers" ]; then | |
| docker kill $running_containers | |
| fi |
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
| #!/usr/bin/env python | |
| import argparse | |
| from xml.etree import ElementTree | |
| from operator import attrgetter | |
| import json | |
| import re | |
| class Register: | |
| def __init__(self, name, offset, length, registers=None): | |
| self.name = name |
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
| #!/usr/bin/env python | |
| import argparse | |
| import base64 | |
| class HTTPBasicAuth: | |
| def __init__(self, username, password): | |
| self.username = username | |
| self.password = password |
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
| #!/usr/bin/env python | |
| import argparse | |
| def set_brightness(b): | |
| with open('/sys/class/backlight/intel_backlight/brightness', 'w') as f: | |
| f.write("%(b)s" % locals()) | |
| def main(): | |
| parser = argparse.ArgumentParser() |
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
| import com.github.jengelman.gradle.plugins.shadow.tasks.DefaultInheritManifest | |
| import org.gradle.api.internal.file.FileResolver | |
| task osgiShadowJar(type: Jar, dependsOn: 'unzipShadowJar') { | |
| def mf = osgiManifest { | |
| classesDir = new File("$buildDir/tmp/osgiShadowJar-classes".toString()) | |
| classpath = configurations.runtime | |
| } | |
| manifest = new DefaultInheritManifest(getServices().get(FileResolver.class)) |
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
| #!/usr/bin/env python2 | |
| import argparse | |
| import heroku | |
| import string | |
| def main(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("app", help="heroku application name") | |
| parser.add_argument("--key", help="heroku API key") |
OlderNewer