Skip to content

Instantly share code, notes, and snippets.

@eugene-dounar
eugene-dounar / graham.hs
Created June 3, 2012 21:15
Graham Scan Haskell Exercise
import Data.List
import Debug.Trace
data Point = Point Double Double
deriving(Show, Eq)
data Direction = DirectionLeft | DirectionRight | DirectionStraight
deriving(Show, Eq)
data Vector = Vector Double Double
deriving(Show)
@eugene-dounar
eugene-dounar / nodejs.txt
Created May 19, 2012 16:12
React vs node.js
$ ab -n 10000 -c 100 http://127.0.0.1:1337/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
@eugene-dounar
eugene-dounar / coding_style.txt
Created March 16, 2012 14:48
Coding Style Guide Survey by Paul M Jones
Coding Style Guide Survey
=========================
Summary
-------
- Indent Type: 4 spaces (13/19)
- Line Length Limit (Soft): 85 or less (11/17)
- Line Length Limit (Hard): 120 or more (10/17)
- Class Names: Studly (16/18)
@eugene-dounar
eugene-dounar / composer.json
Created February 14, 2012 12:58
Composer bug
{
"repositories": {
"APYBreadcrumbTrailBundle": {
"vcs": {
"url": "git://github.com/***/***.git"
}
}
},
"require": {
"symfony/symfony": ">=2.0.7,<2.1.0-dev",
set nocompatible
set hidden
filetype on
filetype plugin on
filetype indent on
" Look stuff
set showmode
set showcmd
// fuck yeah infinity
$timerstartvalue = 999999999999;