Skip to content

Instantly share code, notes, and snippets.

View mohsentaleb's full-sized avatar
🌻

Mohsen Taleb mohsentaleb

🌻
View GitHub Profile
@ste-lam
ste-lam / LICENSE.txt
Last active June 29, 2024 08:10 — forked from 140bytes/LICENSE.txt
base64 encoder w/padding
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
@arian
arian / Function.overload.js
Created April 17, 2011 14:09
Overload functions or methods by the types of the arguments
Function.overload = function(fns, thisArg){
var dflt = (typeOf(fns[fns.length - 1]) == 'function') ? fns.pop() : null;
return function(){
var args = Array.from(arguments),
self = thisArg || this;
overload: for (var i = 0, l = fns.length; i < l; i++){
var types = fns[i].slice(0, -1), length = types.length,
fn = fns[i][length];
@kentaromiura
kentaromiura / kenta.Private.js
Created March 4, 2011 18:26
private pattern mutator for Mootools 1.3.x
/*
---
name: kenta.Private
description: Private mootator for MooTools 1.3.x
license: MIT-style license.
copyright: Carlesso Cristian http://mykenta.blogspot.com