Skip to content

Instantly share code, notes, and snippets.

View atesgoral's full-sized avatar

Ateş Göral atesgoral

View GitHub Profile
@iar-wain
iar-wain / gist:5acd042fc8ce336d0198
Created October 22, 2015 03:24
Human Resource Machine - Level 20 - speed (67)
-- HUMAN RESOURCE MACHINE PROGRAM --
BUMPUP 9
BUMPUP 9
ADD 9
COPYTO 8
ADD 8
JUMP k
a:
b:
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
INBOX
COPYTO 5
COPYFROM 9
COPYTO 0
COPYTO 1
BUMPUP 1
b:
@sheedy
sheedy / style-guides.md
Last active December 25, 2015 11:09
A list of "living" Style Guides

Style Guides

Add any links you want in this to the comments and I'll add them.

Grunt/JS/Handlebars

Generates styleguides from Markdown comments in CSS, SASS and LESS files using Handlebars

Node/JS

@travellingprog
travellingprog / 00 When Static Prototypes Go Wrong.md
Last active February 23, 2016 03:06
When Static Prototypes Go Wrong - some of the lessons learned

When Static Prototypes Go Wrong - Styling

For my part of the presentation, I will talk about some of the lessons learned around styling.

Short URL for this page: http://git.io/vgO0C

There's a ton of links embedded in this gist. I invited you to click through them to help you follow along.

@monoblaine
monoblaine / validate.js
Last active March 28, 2016 09:17 — forked from ssg/validate.js
Turkish ID Validator in a Tweet Attempt
tc=n=>{if(n=n.split('').map(Number),o=n[e=i=0],c=n[9],t=10,o)for(;++i<9;)eval((i%2?'e':'o')+'+=n[i]');return!((7*o-e+t)%t-c|(o+e+c)%t-n[t])}
@grantjbutler
grantjbutler / LICENSE.txt
Created May 23, 2011 16:51 — forked from 140bytes/LICENSE.txt
Query string parsing
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Grant Butler
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@aemkei
aemkei / LICENSE.txt
Created October 8, 2011 15:11 — forked from 140bytes/LICENSE.txt
Digital Segment Display - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@eligrey
eligrey / LICENSE.md
Last active April 24, 2018 00:32 — forked from jed/LICENSE.txt
use cached DOM elements to escape HTML

Public domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.

@matzoe
matzoe / addon.cc
Last active March 18, 2019 11:09
Node.js callback cross threads
// http://nikhilm.github.io/uvbook/threads.html
#include <string>
#include <map>
#include <node.h>
#include <v8.h>
#include <uv.h>
#include <sys/syscall.h>
#include <stdlib.h>
@burtlo
burtlo / son_lint.rb
Created November 18, 2015 00:57
Find all the JSON files in the local directory and any subdirectories and attempt to parse them with a Ruby JSON parser. If any of them fail to load an error message will be displayed.
require 'json'
Dir["**/*.json"].each do |json_file|
JSON.parse(File.read(json_file))
end