Skip to content

Instantly share code, notes, and snippets.

@OiNutter
OiNutter / LICENSE.txt
Created May 26, 2011 15:36 — forked from 140bytes/LICENSE.txt
Credit Card Validation similar to the Luhn Algorithm
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
@OiNutter
OiNutter / compiled.js
Created July 15, 2011 14:10
OiNutter.co.uk - Obscura - CoffeeScript Scope Example
(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 / as3style.as
Created August 25, 2011 20:32
OiNutter.co.uk - ObjectiveC+iOS - Method Definition Comparison
//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 / encapsulation.js
Created August 26, 2011 11:26
OiNutter.co.uk - tipBox - JS Encapuslation
var toolTip = function(){
var _privateProp = 'foo',
_privateMethod = function(){
return 'bar';
},
publicMethod = function(){
return _privateProp + _privateMethod();
};
return {
@OiNutter
OiNutter / launchui.py
Created August 26, 2011 11:31
OiNutter.co.uk - Python Wrangling
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 / scan.js
Created August 26, 2011 11:34
OiNutter.co.uk - tipBox project page
tipBox.scan(className,options)
@OiNutter
OiNutter / ghfm.rb
Last active March 16, 2016 18:44 — forked from carwin/ghfm.rb
#!/usr/bin/ruby
require 'rubygems'
require 'redcarpet'
require 'albino'
class String
def make_semantic
self.downcase.strip.gsub(' ','-').gsub(/[^\w-]/,'')
end
Verifying that +enechorion is my blockchain ID. https://onename.com/enechorion