Skip to content

Instantly share code, notes, and snippets.

View raine's full-sized avatar

Raine Virta raine

View GitHub Profile
No manual entry for // });
shell returned 1
-- More -- pe command to continue
R or type command to continue
No manual entry for // });
shell returned 1
-- More -- pe command to continue
R or type command to continue
" colorscheme wombat256mod
" colorscheme neverland
" set bg=dark
" colorscheme molokai
syntax enable
set background=dark
" colorscheme solarized
colorscheme wombat256mod
/* Any JavaScript here will be loaded for all users on every page load. */
var toggleMapListSetup = function() {
var btn = $('a[id^="collapseButton"]');
btn.each(function() {
var table = $(this).closest('table');
var m = $('.maprow', table);
if (m.length) {
commit 0d312a10767383902caa6f83b2605347ea03b74a
Author: Raine Virta <raine@blaast.com>
Date: Mon Mar 12 12:18:33 2012 +0200
rebased to original file
diff --git a/index.php b/index.php
index cb0e05c..e862ba1 100644
--- a/index.php
+++ b/index.php
set -g base-index 1
setw -g mode-keys vi
set -g default-terminal "screen-256color"
# act like GNU screen
unbind C-b
set-option -g prefix C-f
setw -g aggressive-resize on
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
http://www.memrise.com/cave/?topic=INSERT_TOPIC_HERE&ltemplatename=random_old&plant_filter=wilting
;; Problem 4
;;
;; A palindromic number reads the same both ways. The largest palindrome made
;; from the product of two 2-digit numbers is 9009 = 91 99.
;;
;; Find the largest palindrome made from the product of two 3-digit numbers.
(defn is-palindrome? [s]
(let [s (str s)]
(= s (str/reverse s))))
#!/bin/bash
set -x verbose #echo on
coffee --bare -c */**.coffee
rsync --delete-excluded \
--exclude '.git*' \
--exclude 'deploy.sh' \
--exclude '*.coffee' \
-va $(pwd) ~/Dropbox/Public
mkdir -p dist/
find . -maxdepth 1 -type d \( -path ./.git -o -path ./assets -o -path ./dist \) -prune -o \
-name '*' ! -name '.*' ! -name 'README.md' ! -name 'Makefile' -print | \
xargs -I % sh -c '{ echo %; cp -R % dist/; }'
cd dist && find . -name 'manifest.json' -o -name 'options.html' | \
xargs sed -i. "s/%VERSION%/$$VERSION/g"
find dist -type f -name ".*" | xargs rm
cd dist && zip -r ../memrise-button .
open .