View osx-for-hackers.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
 
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
 
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
View gist:15c68fb142ba01ab06a2
1 2 3 4 5 6 7 8 9 10
"""
This is a batched LSTM forward and backward pass
"""
import numpy as np
import code
 
class LSTM:
@staticmethod
def init(input_size, hidden_size, fancy_forget_bias_init = 3):
View core.clj
1 2 3 4 5 6 7 8 9 10
(ns flambo-streaming-101.core
(:require [flambo.api :as f]
[flambo.streaming :as fs]
[flambo.conf :as fconf]
[flambo.function :refer [pair-function]]
[clj-time.format :as tf]
[clj-time.core :as tc]
[clojure.tools.trace :refer [trace]]
[clojure.java.shell :refer [sh]]
[clojure.pprint :refer [pprint]]
View Clojure.sublime-settings
1 2 3 4 5 6 7 8 9 10
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
 
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
View profiles.clj
1 2 3 4 5 6 7 8 9 10
{:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
[spyscope "0.1.3"]
[criterium "0.4.1"]]
:injections [(require '(clojure.tools.namespace repl find))
; try/catch to workaround an issue where `lein repl` outside a project dir
; will not load reader literal definitions correctly:
(try (require 'spyscope.core)
(catch RuntimeException e))]
:plugins [[lein-pprint "1.1.1"]
[lein-beanstalk "0.2.6"]
View lein-wtf.sh
1 2 3 4 5 6 7 8
#!/bin/bash
 
rm -Rf ~/.m2
rm -Rf ~/.lein
rm -Rf ./target
lein self-install
lein clean
lein version
View r.py
1 2 3 4 5 6 7 8 9 10
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
 
class doRedis(ClusterSetup):
def __init__(self):
pass
def run(self, nodes, master, user, user_shell, volumes):
redis_master_ip = master.private_ip_address
command = """su - arnaudsj -c "nohup R --slave -e 'require(multicore);require(doRedis);startLocalWorkers(n=multicore:::detectCores(),host=\\\"%s\\\",queue=\\\"jobs\\\", port=6379)' > /dev/null 2>&1 &" """ % redis_master_ip
View gist:1004483
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Build and Launch iPhone Application in Simulator or install
# the application on the device via iTunes
#
 
import os, sys, uuid, subprocess, shutil, signal, string, traceback, imp
import platform, time, re, run, glob, codecs, hashlib, datetime, plistlib
from compiler import Compiler
View Couchapp command for TextMate
1 2 3
if [ -f "${TM_PROJECT_DIRECTORY}/.couchapprc" ]; then
/usr/local/Cellar/python/2.7/bin/couchapp push
fi
View phonegap-sc.rb
1 2 3 4 5 6 7 8 9 10
#######################
#### DOCUMENTATION ####
#######################
#
# Run as:
#
# ruby phonegap-sc.rb APP_NAME
# ruby phonegap-sc.rb APP_NAME PROJECT_PATH
# ruby phonegap-sc.rb APP_NAME PROJECT_PATH OUTPUT_PATH
#
Something went wrong with that request. Please try again.