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
#!/bin/bash | |
rm -Rf ~/.m2 | |
rm -Rf ~/.lein | |
rm -Rf ./target | |
lein self-install | |
lein clean | |
lein version |
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
(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]] |
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
""" | |
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): |
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
#!/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' |
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
on run | |
getBitLyURL() | |
end run | |
on getBitLyURL() | |
set BitLyLogin to "bitlyapidemo" | |
set BitLyApiKey to "R_0da49e0a9118ff35f52f629d2d71bf07" | |
tell application "Camino" | |
set bkmkTab to current tab of front browser window |
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
arnaudsj@andromeda ~/mysql-5.0.77/sql-bench | |
21:19:38 $ ./run-all-tests | |
Benchmark DBD suite: 2.15 | |
Date of test: 2009-04-05 21:19:44 | |
Running tests on: Linux 2.6.28-ARCH x86_64 | |
Arguments: | |
Comments: | |
Limits from: | |
Server version: MySQL 5.0.77/ | |
Optimization: None |
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
pkgname=rabbitmq | |
pkgver=1.5.4 | |
pkgrel=0 | |
pkgdesc="Highly reliable and performant enterprise messaging implementation of AMQP written in Erlang/OTP" | |
arch=(i686 x86_64) | |
url="http://rabbitmq.com" | |
license=('MPL') | |
depends=(erlang) | |
source="http://www.rabbitmq.com/releases/${pkgname}-server/v${pkgver}/${pkgname}-server-generic-unix-${pkgver}.tar.gz" | |
install=rabbitmq.install |
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
-module(date_util). | |
-compile(export_all). | |
epoch() -> | |
now_to_seconds(now()) | |
. | |
epoch_hires() -> | |
now_to_seconds_hires(now()) | |
. |
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
# Bash ~/.profile extract to display current git branch | |
# For Example: | |
# toto@mylaptop.local ~/Development/MyProject | |
# 10:17:39 ^master $ | |
function parse_git_branch | |
{ | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo ${ref#refs/heads/} | |
} |
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
# (Prerequesite) Install soaplib by running: easy_install soaplib | |
from soaplib.client import make_service_client | |
from soaplib.wsgi_soap import SimpleWSGISoapApp | |
from soaplib.service import soapmethod | |
from soaplib.serializers.primitive import String, Integer, Array | |
class JiraSOAPService(SimpleWSGISoapApp): | |
@soapmethod(String, String, _outVariableName="loginReturn", _returns=String) | |
def login(self,username,password): |
OlderNewer