Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Francesco Ceccon fracek

🎯
Focusing
View GitHub Profile
@fracek
fracek / addon.xml
Created Jan 27, 2012
WoW XML skeleton
View addon.xml
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
</Ui>
View gist:1711794
tab () {
osascript 2>/dev/null <<EOF
tell application "iTerm"
tell the first terminal
launch session "Default"
tell the the current session
write text "cd $PWD; $*"
end tell
end tell
end tell
View form.clj
(defpage "/" []
(common/layout
(form-to {:enctype "multipart/form-data"}
[:post "/upload"]
(label :file "File to upload:")
(file-upload :file)
[:br]
(submit-button "Upload"))))
@fracek
fracek / gist:1712103
Created Jan 31, 2012
Open url from emacs
View gist:1712103
;; Set the default browser command
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "open")
;; Set a keybind
(global-set-key (kbd "C-c C-o") 'browse-url)
@fracek
fracek / .profile
Created Feb 11, 2012
Usefull shell alias
View .profile
alias hu='ls'
alias hh='ls -l'
alias ha='ls -a'
View spawn_fcgi
#!/bin/sh
#
# Spawn a php-fcgi using spawn-fcgi
daemon="/usr/local/bin/spawn-fcgi"
. /etc/rc.d/rc.subr
pexp="/usr/local/bin/php-fastcgi-5.2"
rc_bg=NO
@fracek
fracek / Clang output
Created Mar 18, 2012
I <3 GCC errors
View Clang output
clang -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o
In file included from bgzf.c:36:
./bgzf.h:31:10: fatal error: 'knetfile.h' file not found
#include "knetfile.h"
^
1 error generated.
View README.md

nano

minimalistic couchdb driver for node.js

nano features:

  • minimalistic - there is only a minimun of abstraction between you and couchdb
  • pipes - proxy requests from couchdb directly to your end user
  • errors - errors are proxied directly from couchdb: if you know chouchdb
@fracek
fracek / classes.csv
Created May 11, 2012
Nessun Dorma Stats - Classes
View classes.csv
count class
10 Warrior
9 Paladin
6 Hunter
5 Rogue
5 Priest
5 Death Knight
8 Shaman
6 Mage
4 Warlock
@fracek
fracek / index.html
Created May 11, 2012
Nessun Dorma Stats - Destroyer's End
View index.html
<html>
<head>
<title>Nessun Dorma Stats</title>
<script src="http://d3js.org/d3.v2.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page">
<h2>Destroyer's End</h2>
<div class="legenda">