This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Kambfhase | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Kambfhase | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vection = (function () { | |
function vection(){ | |
return vection.create.apply(vection, [].slice.call(arguments)); | |
} | |
function _extend( target, base) { | |
for (var key in base) { | |
if ({}.hasOwnProperty.call(base, key)) { | |
target[key] = base[key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Kambfhase | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://code.google.com/p/es-lab/wiki/Traits | |
http://webreflection.blogspot.com/2010/01/es5-es5-classes-as-descriptor-objects.html | |
http://javascript.crockford.com/prototypal.html | |
http://jsclass.jcoglan.com/ | |
http://ejohn.org/blog/simple-javascript-inheritance/ | |
https://github.com/Kambfhase/Din | |
http://github.com/tobeytailor/def.js | |
http://mootools.net/docs/core/Class/Class | |
http://github.com/polvero/klass | |
http://github.com/Joose/Joose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minimal testcase: | |
function(input){ | |
return input; | |
} | |
Options: | |
/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, undef:true, unused:true, browser:true, devel:true, jquery:true, es5:true, indent:4, maxerr:50 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.filterByPattern = function( string){ | |
var regex = new RegExp( string, "ig"); | |
return this.hide().filter(function(){ | |
return regex.test($(this).text()); | |
}).show(); | |
}; | |
$('div').filterByPattern("parents"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wrapper = $( | |
'<div class="podlovewebplayer_wrapper">'+ | |
'<div class="podlovewebplayer_meta">'+ | |
'<a class="bigplay" href="#"></a>'+ | |
'<div class="coverart"><img src="samples/coverimage.png" alt=""></div>'+ | |
'<h3 class="episodetitle">'+ | |
'<a href="{URL}">{TITLE}</a>'+ | |
'</h3>'+ | |
'<div class="subtitle">{SUBTITLE}</div>'+ | |
'<div class="togglers">'+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function detect( fn, err){ | |
var flag = true; | |
setTimeout(function(){ | |
if(flag) err(); | |
},0); | |
fn(); | |
flag = false; | |
} | |
// example with error |