Skip to content

Instantly share code, notes, and snippets.

Ersin Buckley ebuckley

Block or report user

Report or block ebuckley

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
ericremoreynolds / client.html
Last active May 24, 2019 emit to specific clients
View client.html
<h1>I feel lonely</h1>
<script type="text/javascript" src="//"></script>
<script type="text/javascript" src="//"></script>
<script type="text/javascript" charset="utf-8">
var socket = io.connect('http://' + document.domain + ':' + location.port);
socket.on('connect', function() {
nojvek / Tinder Auto-liker
Last active Jan 25, 2019
Tinder Auto-liker script
View Tinder Auto-liker
// Licence: WTFPL !
$fbAuth = array("facebook_id" => "123456789", "facebook_token" => "<Use charles proxy to do man-in-middle SSL sniffing and extract fb token>");
// Do the magic.
$tinderToken = tinderCall("auth", "token", $fbAuth); // Authenticate
$authToken = "X-Auth-Token: $tinderToken\r\nAuthorization: Token token=\"$tinderToken\"\r\n";
staltz /
Last active May 27, 2019
The introduction to Reactive Programming you've been missing
nicktoumpelis /
Created Apr 23, 2014
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
larrybotha / A.markdown
Last active Mar 12, 2019
Fix SVGs not scaling in IE9, IE10, and IE11
View A.markdown

Fix SVG in <img> tags not scaling in IE9, IE10, IE11

IE9, IE10, and IE11 don't properly scale SVG files added with img tags when viewBox, width and height attributes are specified. View this codepen on the different browsers.

Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.

Use sed in bash to remove width and height attributes in SVG files

As per this answer on Stackoverflow, the issue can be resolved by removing just the width and height attributes.

evansdiy / guid.js
Created Dec 11, 2012
Generate fake GUID(also known as UUID) by using javascript
View guid.js
// original from
function S4() {
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
function generateGuid() {
return (S4() + S4() + "-" + S4() + "-4" + S4().substr(0,3) + "-" + S4() + "-" + S4() + S4() + S4()).toLowerCase();
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
jlong / uri.js
Created Apr 20, 2012
URI Parsing with Javascript
View uri.js
var parser = document.createElement('a');
parser.href = "";
parser.protocol; // => "http:"
parser.hostname; // => ""
parser.port; // => "3000"
parser.pathname; // => "/pathname/"; // => "?search=test"
parser.hash; // => "#hash"; // => ""
gardaud / gist:1766179
Created Feb 8, 2012
Game development bucket list
View gist:1766179
Be inspired
Have an idea for a game
Throw out a game idea
Have an idea for a game you can actually make
Create a paper prototype
Create a digital prototype
Design a game
Program a game
Art a game
Have someone else play your game
View sass_and_less_compared.markdown

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.


You can’t perform that action at this time.