Skip to content

Instantly share code, notes, and snippets.

View Hillsie's full-sized avatar
👋

Hillsie Hillsie

👋
  • Sydney, Australia
  • 11:11 (UTC +10:00)
View GitHub Profile
@koistya
koistya / React-Directory-Layout.md
Last active April 7, 2024 19:01
File and folder naming convention for React.js components

File and folder naming convention for React.js components

Directory Layout #1

/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
@dfarrell-bloom
dfarrell-bloom / gist:8446903
Created January 15, 2014 23:33
get an ip from a server with ipchicken
# not super awesome but it works
curl ipchicken.com | grep "[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
@andrewringler
andrewringler / README.md
Created October 1, 2012 04:00
Sorting Algorithms

Animated visualizations of Quicksort, Comb sort, Gnome sort, Selection sort, Bubble sort and Bogosort.

The Viz

  • Array values are represented by line height and color.
  • Current location in a traversal is represented by a pink bar above the array item.
  • Item swaps are signified by a bar of the same color as the array item above that item.
@dmethvin
dmethvin / gist:1676346
Created January 25, 2012 13:51
Breakpoint on access to a property
function debugAccess(obj, prop, debugGet){
var origValue = obj[prop];
Object.defineProperty(obj, prop, {
get: function () {
if ( debugGet )
debugger;
return origValue;
},