Skip to content

Instantly share code, notes, and snippets.

// fuck yeah infinity
$timerstartvalue = 999999999999;
set nocompatible
set hidden
filetype on
filetype plugin on
filetype indent on
" Look stuff
set showmode
set showcmd
@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",
@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 / 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 / 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)
[user]
email = [email protected]
name = Eugene Dounar
[alias]
lg = log --graph --color --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(bold blue)<%an>%C(reset)' --
[color]
ui = true
[core]
autocrlf = false
[push]
@eugene-dounar
eugene-dounar / phpcs.xml
Created May 30, 2013 17:09
PHP CodeSniffer rules
<?xml version="1.0"?>
<ruleset name="Intellectsoft">
<description>Intellectsoft coding standard</description>
<exclude-pattern>*/Resources/*</exclude-pattern>
<rule ref="PSR2"/>
<rule ref="Symfony2.Formatting.BlankLineBeforeReturn"/>
<rule ref="PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket"><severity>0</severity></rule>
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"><severity>0</severity></rule>
@eugene-dounar
eugene-dounar / id_rsa.pub
Created June 14, 2013 22:08
Public SSH Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCoPeUTEzIAyOOlfNcXQf7lWQGsxPaI49N0uM5n7usR/UfYOm+O01I2AleSFjE3oFf/vX/lbFhCUqpDnx0Tmn/qboATRivXOM7aZumVW7tao0v1w07A3+ol4TlO4Huo1ssV5gdugVIBPFEhEk9r1Kfw5yDT5kDV68SgEw2/2MsgelWNypT5O+rL9K8SC4pUlcZfluw7wuWm6OLFDPrCtnpGfpkIcpxoaGpp5zEEY6REpkvhaZ2ePwrOp2QceK0suqPFQsNwH3TG/pLn6EkrPaae8OzPT5AKZxxsO9qkUkzrkWupl+A+Iy4Kf9bfq2llzH2BByxFoEC2f6LUxac/F7rb eugene.dounar
<?php
/**
* Registration
*/
$app->post('/users/', function (Request $request) use ($app) {
$user = $app->deserialize('Assurant\User', ['Registration']);
$app['users']->register($user);
return $app->serialize($user, 201);