start new:
tmux
start new with session name:
tmux new -s myname
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
== Rules == | |
On Infrastructure | |
----------------- | |
There is one system, not a collection of systems. | |
The desired state of the system should be a known quantity. | |
The "known quantity" must be machine parseable. | |
The actual state of the system must self-correct to the desired state. | |
The only authoritative source for the actual state of the system is the system. | |
The entire system must be deployable using source media and text files. |
(ns rbl.feature-extraction.user-agent | |
(:use [clojure.core.memoize :only [memo]]) | |
(:require [clojure.tools.logging :as log]) | |
(:import [nl.bitwalker.useragentutils UserAgent DeviceType Browser OperatingSystem])) | |
(defn str->features [string] | |
(try | |
(let [user-agent (UserAgent. (or string ""))] | |
{:browser_group (-> user-agent .getBrowser .getGroup .getName) | |
:os_group (-> user-agent .getOperatingSystem .getGroup .getName) |
(defproject foo "1.0.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:dependencies [[org.clojure/clojure "1.3.0"] | |
[org.clojure/clojurescript "0.0-927"]]) |
(ns storm.starter.clj.exclamation | |
(:import [backtype.storm StormSubmitter LocalCluster]) | |
(:use [backtype.storm clojure config]) | |
(:gen-class)) | |
(defspout test-word-spout ["word"] {:prepare false} | |
[collector] | |
(Thread/sleep 100) | |
(emit-spout! collector [(rand-nth ["first" "second" "third" "fourth"])])) |
require "rubygems" | |
require "bundler/setup" | |
require 'yaml' | |
require 'aws-sdk' | |
#require 'jruby-openssl' | |
bucket_name = "talim" | |
file_name = "jrubyaws.txt" |