Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
JeffreyWay / .vimrc
Last active August 3, 2024 16:51
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@mislav
mislav / tmux-switch-session.sh
Created January 13, 2013 17:26
A jump-to-session tmux shortcut. With `<prefix> S` a prompt is shown to enter a session name. If no name is given, switches back to the previously attached session. Session name can be a partial string that the session starts with, as long as it's unique.
#!/usr/bin/env bash
set -e
if [[ -z $1 ]]; then
tmux switch-client -l
else
tmux switch-client -t "$1"
fi
@michiakig
michiakig / three.cljs
Created August 19, 2011 20:53
three.js demo in ClojureScript
(ns three.demo)
(def camera (THREE.Camera. 75 (/ window/innerWidth
window/innerHeight) 1 10000))
(set! (.z (.position camera)) 1000)
(def scene (THREE.Scene.))
(def geometry (THREE.CubeGeometry. 200 200 200))
(def obj (js/Object.))
(set! (.color obj) 0xff0000)
(set! (.wireframe obj) true)
(def material (THREE.MeshBasicMaterial. obj))