Skip to content

Instantly share code, notes, and snippets.

View Nyx0uf's full-sized avatar
🏠
Working from home

Nyx0uf Nyx0uf

🏠
Working from home
View GitHub Profile
@rsebbe
rsebbe / CRParallaxMotionEffect.h
Created October 2, 2013 09:35
The CRParallaxMotionEffect class allows setting up parallax more easily in iOS 7.
//
// CRParallaxMotionEffect.h
// CeedBase
//
// Created by Raphael Sebbe on 23/07/13.
// BSD License (3-clause). Copyright (c) 2013 Creaceed. All rights reserved.
//
#import <UIKit/UIKit.h>
@willurd
willurd / web-servers.md
Last active May 6, 2024 09:12
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@jboner
jboner / latency.txt
Last active May 6, 2024 07:06
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#