Skip to content

Instantly share code, notes, and snippets.

View sputnikus's full-sized avatar

Martin Putniorz sputnikus

View GitHub Profile
@ghoseb
ghoseb / factorial.py
Created November 14, 2008 18:58
The evolution of a Python Programmer
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
;; this file is a walkthrough of Moustache features, a web framework for Clojure
;; http://github.com/cgrand/moustache/tree/master
;; Moustache allows to declare routes, apply middlewares and dispatch on http methods.
;; Moustache is compatible with all frameworks built on Ring, including Compojure
(ns demo
(:use net.cgrand.moustache)
(:use [ring.adapter.jetty :only [run-jetty]])) ;; hmmm Ring without servlets
@defunkt
defunkt / installing-mustache.vim.md
Created March 6, 2010 10:21
Installing mustache.vim

mustache.vim

In your shell:

cd ~/.vim
git clone git://github.com/juvenn/mustache.vim.git
mv mustache.vim/syntax/* syntax/
mv mustache.vim/indent/* indent/
mv mustache.vim/ftdetect/* ftdetect/

rm -rf mustache.vim

@jsjohnst
jsjohnst / example_output.png
Created May 13, 2011 17:10
Example of getting recommendations from LinkedIn JSAPI
example_output.png
➜ flask-post curl -i -0 -d 'foo=bar' http://flaskpost-miyagawa.dotcloud.com/post
HTTP/1.1 200 OK
Server: nginx/1.0.5
Date: Thu, 01 Sep 2011 02:00:40 GMT
Content-Type: text/html; charset=utf-8
Connection: close
Content-Length: 10
curl: (18) transfer closed with 10 bytes remaining to read
➜ flask-post curl -i -0 -d 'foo=bar' http://flaskpost-miyagawa.dotcloud.com/post_read_data
@starenka
starenka / .gitignore
Created September 18, 2011 20:02
fabfile to deploy flask app to nginx/supervisor/uwsgi stack
.idea/*
*.pyc
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@honzajavorek
honzajavorek / gist:1325995
Created October 30, 2011 14:58
Co se dá dělat v Brně a tak vůbec

Co se dá dělat v Brně a tak vůbec :)

Vevnitř

  • hry: deskové hry, karetní hry, šachy, ...
  • divadlo (NDB, méně vážná divadla jako např. Buranteatr, Služebníci lorda Alfréda, ...)
  • kulečník (např. ve 14ce je za zálohu zadarmo, stačí přijít ve všední den jako např. ve čtvrtek)
  • kino (multiplexy, ART, letní kino na Dobráku)
  • sport (např. squash, plavání, ...)
  • tanec (jednorázové kurzy samby, klasické taneční kurzy)
@christophermanning
christophermanning / README.mkd
Last active August 28, 2023 00:46
Hamiltonian Graph Builder
<style type="text/css">p {text-align:center;width: auto}</style>

Created by Christopher Manning

Gallery

Axle Eight Fibbobaci Florets [![Star]

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: