Skip to content

Instantly share code, notes, and snippets.

🚲
Inventing

Alexey Novikov velocityzen

🚲
Inventing
Block or report user

Report or block velocityzen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@staltz
staltz / introrx.md
Last active Apr 5, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@hdragomir
hdragomir / sm-annotated.html
Last active Mar 12, 2020
The deferred font loading logic for Smashing Magazine. http://www.smashingmagazine.com/
View sm-annotated.html
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
@LinusU
LinusU / uuid-v5.js
Created Apr 30, 2014
UUID V5 Node.js
View uuid-v5.js
function uuid5(data) {
var out = crypto.createHash('sha1').update(data).digest();
out[8] = out[8] & 0x3f | 0xa0; // set variant
out[6] = out[6] & 0x0f | 0x50; // set version
var hex = out.toString('hex', 0, 16);
return [
hex.substring( 0, 8),
@vertexclique
vertexclique / cracking.md
Last active Jan 25, 2020
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )
View cracking.md

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@kaishin
kaishin / NSColor+isLight.h
Last active Jan 19, 2020
Programmatically determine the perceived lightness of a color. More details on: http://robots.thoughtbot.com/closer-look-color-lightness + Online tool: http://thoughtbot.github.io/color-lightness-test/
View NSColor+isLight.h
#import <Cocoa/Cocoa.h>
@interface NSColor (isLight)
- (BOOL)isLight;
@end
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Mar 31, 2020
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@nossidge
nossidge / Snowball
Last active Dec 15, 2015
C++ Generate valid snowball poems, using input file of example text and Markov chains to help make it grammatically correct.
View Snowball
/*
~~ Snowball Poem ~~
Snowball (also called a Chaterism): A poem in which each line is a single word,
and each successive word is one letter longer. One of the constrained writing
techniques invented by the Oulipo (Workshop of Potential Literature).
~~ Program Description ~~
This program takes input from the file "input-raw.txt". It examines the file for
@b2arn
b2arn / puller
Created Aug 13, 2012
Script to git pull all repos in directory
View puller
#!/bin/bash
current_dir=`pwd`/
dir=$current_dir
usage="Usage : `basename $0` [-d dir] [-h] args\nWhere args are directories that you don't whant to pull"
while getopts hd: opt; do
case $opt in
d)
if [ ! -d "$OPTARG" ] ; then
@streeter
streeter / brew-update-notifier.sh
Last active Jan 21, 2020
Homebrew Package Update Notifications on Mountain Lion
View brew-update-notifier.sh
#!/bin/bash
#
# Notify of Homebrew updates via Notification Center on Mac OS X
#
# Author: Chris Streeter http://www.chrisstreeter.com
# Requires: terminal-notifier. Install with:
# gem install terminal-notifier
TERM_APP='/Applications/Terminal.app'
BREW_EXEC='/usr/local/bin/brew'
You can’t perform that action at this time.