Skip to content

Instantly share code, notes, and snippets.

Will McKenzie OiNutter

Block or report user

Report or block OiNutter

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
View gist:5bfccc7e563d7890a4cafff57b312894
Verifying that +enechorion is my blockchain ID. https://onename.com/enechorion
View ghfm.rb
#!/usr/bin/ruby
require 'rubygems'
require 'redcarpet'
require 'albino'
class String
def make_semantic
self.downcase.strip.gsub(' ','-').gsub(/[^\w-]/,'')
end
@OiNutter
OiNutter / scan.js
Created Aug 26, 2011
OiNutter.co.uk - tipBox project page
View scan.js
tipBox.scan(className,options)
@OiNutter
OiNutter / launchui.py
Created Aug 26, 2011
OiNutter.co.uk - Python Wrangling
View launchui.py
class MainWindow(QtGui.QMainWindow):
def __init__(self,parent=None):
super(MainWindow,self).__init__(parent)
QtGui.QMainWindow.__init__(self)
self.ui = uic.loadUi('main.ui', self)
app = QtGui.QApplication(sys.argv)
main = MainWindow()
main.show()
@OiNutter
OiNutter / encapsulation.js
Created Aug 26, 2011
OiNutter.co.uk - tipBox - JS Encapuslation
View encapsulation.js
var toolTip = function(){
var _privateProp = 'foo',
_privateMethod = function(){
return 'bar';
},
publicMethod = function(){
return _privateProp + _privateMethod();
};
return {
@OiNutter
OiNutter / as3style.as
Created Aug 25, 2011
OiNutter.co.uk - ObjectiveC+iOS - Method Definition Comparison
View as3style.as
//Actionscript 3 - Method Definitions
//single argument methods
public function doubleNumber(double: number):double;
//multiple argument methods
public function multiplyNumberByAnotherNumber(double: number1,double: number2):double;
@OiNutter
OiNutter / compiled.js
Created Jul 15, 2011
OiNutter.co.uk - Obscura - CoffeeScript Scope Example
View compiled.js
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
object(function() {
this.prop = 'foo';
return this.bar = __bind(function(newProp) {
return this.prop = newProp;
}, this);
});
}).call(this);
@OiNutter
OiNutter / LICENSE.txt
Created May 26, 2011 — forked from 140bytes/LICENSE.txt
Credit Card Validation similar to the Luhn Algorithm
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Will McKenzie<www.oinutter.co.uk>
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
You can’t perform that action at this time.