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 | |
## https://gist.github.com/eminence/85961d47244a140fde89314837d0db0a | |
set -e | |
PWD=`pwd` | |
DD=$PWD/downloads/ # Download Directory | |
function download { |
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
#EXTM3U | |
#EXTINF:0,4 to the Floor | |
https://stream-mixtape-geo.ntslive.net/mixtape5 | |
#EXTM3U | |
#EXTINF:0,Expansions | |
https://stream-mixtape-geo.ntslive.net/mixtape3 | |
#EXTM3U | |
#EXTINF:0,Feelings | |
https://stream-mixtape-geo.ntslive.net/mixtape27 | |
#EXTM3U |
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
format = """ | |
$battery\ | |
$username\ | |
$hostname\ | |
$directory\ | |
$git_branch\ | |
$git_state\ | |
$git_status\ | |
$cmd_duration\ | |
$line_break\ |
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
const Realm = require('realm'); | |
const uuid = require('uuid').v4; | |
const process = require('process'); | |
const argv = process.argv.slice(2); | |
const STITCH_APP_ID = 'foo2-tqxot'; | |
Realm.Sync.setLogLevel('all'); | |
// Uncomment these instead to hit ROS | |
/* |
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 fileinput | |
import re | |
goroutine_hdr = re.compile('^goroutine (\d+) \[([\w\s,]+)\]:$') | |
funccall_params = re.compile('(.*)\([^\)]*\)$') | |
def main(): | |
goroutines = [] | |
currentgoroutine = None |
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
void memLimitTest() { | |
Isolate::CreateParams create_params; | |
v8::ResourceConstraints constraints; | |
constraints.set_max_old_space_size(100); | |
create_params.constraints = constraints; | |
create_params.array_buffer_allocator = | |
v8::ArrayBuffer::Allocator::NewDefaultAllocator(); | |
Isolate *isolate = Isolate::New(create_params); | |
{ | |
Isolate::Scope isolate_scope(isolate); |
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 | |
set -u | |
DOC_DIR=godoc | |
PKG=github.com/10gen/baas | |
# Run a godoc server which we will scrape. Clobber the GOPATH to include | |
# only our dependencies.s | |
godoc -http=localhost:6060 & | |
DOC_PID=$! |
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 main | |
import ( | |
"crypto/tls" | |
"log" | |
) | |
type OpCode int32 | |
const MsgHeaderLen = 16 |
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
tasks: | |
- name: compile | |
commands: | |
- command: git.get_project | |
params: | |
directory: src | |
- command: shell.exec | |
params: | |
script: | | |
echo "hello world!" |
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
$(document).ready(function() { | |
var fps = 30; | |
var fpsInterval = 1000 / fps; | |
var tokens = $('.bricks').text().split(/\s/g) | |
var out = $(".out") | |
$.each(tokens, function(i, v) { | |
var newNode = $('<span class="word"></span>').text(v); | |
out.append(newNode); | |
}) |
NewerOlder