This file contains 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/bash | |
grep -r $'\r' -l $1 > /dev/null | |
if [ $? -eq 0 ]; then | |
echo "Windows" | |
else | |
echo "Linux" | |
fi |
This file contains 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
alias g='git' | |
alias ga='git_add_shortcuts' | |
alias gb='exec_scmb_expand_args _scmb_git_branch_shortcuts' | |
alias gba='exec_scmb_expand_args _scmb_git_branch_shortcuts -a' | |
alias gca='git_commit_all' | |
alias gf='git fetch' | |
alias gg='git status' | |
alias git_aliases='list_aliases git' | |
alias gp='git push origin master' | |
alias grb='git rebase origin/master' |
This file contains 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
#date: 03/30/2005 | |
#title: Charlie the Smiling Fish | |
#author: Jan Wikholm | |
#email: jw at jw dot fi | |
#comments: This was written in <6hrs once I heard I might actually have a chance at the prizes ;) | |
#---------------------------------------- | |
#code: | |
# Hello IORCC judges. | |
module IORCC_entry | |
extend self |
This file contains 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
% 2.3 | |
word(astante, a,s,t,a,n,t,e). | |
word(astoria, a,s,t,o,r,i,a). | |
word(baratto, b,a,r,a,t,t,o). | |
word(cobalto, c,o,b,a,l,t,o). | |
word(pistola, p,i,s,t,o,l,a). | |
word(statale, s,t,a,t,a,l,e). | |
crossword(V1, V2, V3, H1, H2, H3) :- | |
word(V1, _,V1H1,_,V1H2,_,V1H3,_), |
This file contains 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
for h in {0..23} | |
do | |
for m in {0..59} | |
do | |
# .csv format: | |
# 00:07,2 | |
# 00:10,17 | |
# this combines single.csv and all csv to so that all minutes of the day are counted | |
# all.csv includes single.csv numbers, but we want em separate | |
ts=`printf "%02d:%02d" $h $m` |
This file contains 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
// ==UserScript== | |
// @name Expand my Tickets! | |
// @namespace http://jw.fi/ | |
// @version 0.1 | |
// @description Expands Trac ticket view to be 80% wide to better fit bigger resolutions | |
// @match https://*trac*/* | |
// @copyright 2012+, Jan Wikholm | |
// ==/UserScript== | |
function addStyle(style) { |
This file contains 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
(take 10 (for [n (whole-numbers) :when (even? n) ] n)) | |
= > (2 4 6 8 10 12 14 16 18 20) |
NewerOlder