I hereby claim:
- I am vedang on github.
- I am vedang (https://keybase.io/vedang) on keybase.
- I have a public key whose fingerprint is 64C0 579D EA73 EADC B9FE DD2D 02C8 3321 60B8 648C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
List of Things required for the Sarpass Trek | |
============================================ | |
1. Medical form signed by Doctor. (This is COMPULSORY document) | |
2. Temporary / Permanent YHAI membership card. | |
3. Get latest passport size photos | |
4. Rucksack | |
5. cotton shirts | |
6. 2 denim jeans | |
7. woolen jersey or jacket |
;;; section 2.6.1 | |
;;; Generate designs by having a function act on x and y co-ordinates in a frame | |
;;; Define a frame and grab it's graphics context | |
(def frame (java.awt.Frame.)) | |
(.setVisible frame true) | |
(def gfx (.getGraphics frame)) | |
;;; Our generator function | |
(defn f-values |
(defn pascal-val | |
"function to calculate value of element at a particular row and column | |
for the pascal triangle." | |
[r c] | |
(cond | |
(= c 0) 1 | |
(= c r) 1 | |
:else (+ (pascal-val (- r 1) (- c 1)) | |
(pascal-val (- r 1) c)) )) |
#!/bin/bash | |
# get id of emacs | |
win=$(xdotool search --onlyvisible --class emacs | head -1) | |
if [ "x$win" = x ]; then | |
# Emacs is not running | |
# switch to viewport 1, which is my coding viewport | |
~/incoming-src/dotfiles/scripts/compiz-send.py vpswitch switch_to_1_key | |
gxmessage -center -timeout 2 -nofocus -buttons "" -borderless "loading emacs..."& | |
# start Emacs |
from timeit import Timer | |
from random import randint | |
def switch_if(): | |
value = randint(1, 10) | |
if value == 1: | |
return '1' | |
elif value == 2: | |
return '2' |
(ns cello-world.routes | |
(:require [compojure.route :as route] | |
[compojure.core :as cc] | |
[ring.util.response :as rur]) | |
(:use [ring.adapter.jetty :only [run-jetty]])) | |
(cc/defroutes hello-routes | |
(cc/GET "/hello/name/" [] | |
(fn [req] |
(ns example.hystrix.redis | |
(:require [com.netflix.hystrix.core :as hystrix] | |
[taoensso.carmine :as car :refer [wcar]]) | |
(:refer-clojure :exclude [time get set key keys type sync sort eval])) | |
(def server-spec {:spec {:host "127.0.0.1" | |
:port 6379} | |
:pool {:max-active 8}}) |
#! /bin/bash | |
# find . -maxdepth 1 -type d \( ! -name . \) -print0 | xargs -0 -L1 /path/to/run-git-fetch.sh | |
fetch_file=".git-fetch" | |
echo "Working in $1" | |
cd "$1" || exit | |
fetch_upstream_and_merge() |
(ns game-of-life | |
(:require [clojure.set :as cs])) | |
(defn calculate-neighbour-coordinates* | |
[[x y]] | |
(->> (vector [(+ x 1) y] | |
[(- x 1) y] | |
[x (+ y 1)] | |
[x (- y 1)] | |
[(+ x 1) (+ y 1)] |