This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
shape-rendering: crispEdges; | |
} | |
.day { |
This file contains hidden or 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
"A function to convert csv to tex table | |
function! s:csv_to_tex_table() range | |
let lines = getline(a:firstline, a:lastline) | |
let spacelen = [] | |
let maxrownum = 0 | |
let maxcollen = [] | |
let values = [] | |
for i in range(0, a:lastline - a:firstline) | |
let linespacelen = [] | |
call add(values, split(substitute(lines[i], '\s*\,\s*', ',', 'g'), ',')) |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'twitter' | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' | |
ACCESS_SECRET = '' |
This file contains hidden or 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
(defun fizzbuzz () | |
(loop for i | |
below 100 | |
do (progn | |
(princ (cond ((zerop (mod i 15)) "FizzBuzz") | |
((zerop (mod i 5 )) "Buzz") | |
((zerop (mod i 3 )) "Fizz") | |
(t i))) | |
(fresh-line)))) |
This file contains hidden or 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 | |
beer="\xf0\x9f\x8d\xba" | |
if [ `date +"%w"` == "5" ]; then | |
echo -n $beer | sed -e 's/^-n//' | |
fi | |
This file contains hidden or 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
program main | |
integer :: i | |
do i = 1, 100 | |
if (mod(i, 15) == 0) then | |
print *, "FizzBuzz" | |
elseif (mod(i, 5) == 0) then | |
print *, "Buzz" | |
elseif (mod(i, 3) == 0) then |
This file contains hidden or 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
let s:extfname = expand("%:e") | |
if s:extfname ==? "f90" | |
let fortran_free_source=1 | |
unlet! fortran_fixed_source | |
else | |
let fortran_fixed_source=1 | |
unlet! fortran_free_source | |
endif |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 | |
timecard="${HOME}/.timecard" | |
tweetrb="${HOME}/.bin/timecard/tweet.rb" | |
role=$1 | |
today=`date "+%Y/%m/%d"` | |
nowtime=`date "+%H:%M:%S"` |
This file contains hidden or 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
\mode<presentation> | |
\usecolortheme{whale} | |
\usecolortheme{orchid} | |
\useinnertheme{rounded} | |
\useoutertheme{infolines} | |
\setbeamertemplate{headline}[default] | |
\definecolor{ExSkyBlue}{RGB}{4, 114, 255} |