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
// everyone's new favorite closure pattern: | |
(function(window,document,undefined){ ... })(this,this.document); | |
// when minified: | |
(function(w,d,u){ ... })(this,this.document); | |
// which means all uses of window/document/undefined inside the closure | |
// will be single-lettered, so big gains in minification. | |
// it also will speed up scope chain traversal a tiny tiny little bit. |
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 Alex Kloss <alexthkloss@web.de> | |
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 wl = function(s) { | |
var dw = function(s){document.write(s);}, | |
spaces = ' '; | |
dw(!s ? 'false!!!' : (s).toString()); | |
dw(('<br />').toString()); | |
for(var i in s) { | |
if((s[i]).toString().indexOf('function') !== -1) { |
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
// selected index in select (dropdown) | |
$.fn.selectedIndex = function () { | |
var index = 0; | |
this.each(function () { | |
index = +$(this).prop('selectedIndex'); | |
return false; | |
}); | |
return index; | |
}; |
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 formatFunc = function format() { | |
// slice 1st parameter which is pattern | |
var args = Array.prototype.slice.call(arguments, 1), | |
pattern = arguments[0]; | |
return pattern.replace(/{(\d+)}/g, function (match, number) { | |
return typeof args[number] != 'undefined' ? args[number] : match; | |
}); | |
}; |
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
kill -f webdev.webserver webdev.webserver40 firefox iexplore iisexpress | |
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 | |
iisreset | |
sync |
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 createProperty(config) { | |
var options = { initValue: null, setter: null, getter: null }, | |
_config = $.extend(options, config), | |
_value = _config.initValue, | |
context; | |
return function (value) { | |
if (value === undefined) { | |
if (_config.getter && typeof _config.getter === "function") { | |
context = { value: _value }; | |
return config.getter(context); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/qunit/qunit-git.css" /> | |
<title></title> | |
</head> | |
<body> | |
<div id="qunit"></div> | |
<!---------- scripts -----------------> |
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
#include<stdio.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
//#include<iostream> | |
void wl(int); | |
void main() | |
{ | |
int i, j; |
OlderNewer