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
$('.hidden ul li') | |
.each( | |
function(index, element) { | |
$(element) | |
.click( | |
function() { | |
alert(index); | |
}) | |
.fadeIn(index * 900) | |
.css('margin-left', (40 * index) + 'px'); |
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 log = function(msg) { | |
window.console && | |
typeof console.log === 'function' && | |
console.log(msg); | |
}; | |
// http://tlrobinson.net/blog/2008/10/wrapping-javascript-callbacks/ | |
function callbackWrap(object, property, argumentIndex, wrapperFactory, extra) { | |
var original = object[property]; | |
object[property] = function() { |
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 User1( name, age ){ | |
this.name = name; | |
this.age = age; | |
} | |
// Add a new function to the object prototype | |
User1.prototype.getName = function(){ | |
return this.name; | |
}; | |
User1.prototype.getAge = function(){ | |
return this.age; |
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 chars = ['#', '&', ';', ':', '/', '\\', '\'', '"', 'A', | |
'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', | |
'È', 'É', 'Ê', 'Ë', | |
'Ì', 'Í', 'Î', 'Ï', | |
'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', | |
'×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', | |
'Ý', 'Þ', 'ß', | |
'à', 'á', 'â', 'ã', 'ä', 'å', | |
'æ', 'ç', 'è', 'é', 'ê', 'ë', | |
'ì', 'í', 'î', 'ï', |
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() { | |
var defaults = { | |
bk_meta_vars: [], | |
bk_js_list: [], | |
bk_pixel_limit: 15, | |
bk_ignore_meta: true, | |
bk_allow_multiple_calls: false, | |
bk_ignore_outside_iframe: false | |
}; |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=no;"> | |
<style type='text/css'> | |
.center { |
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
#!/bin/bash | |
# Make a static clone the working copy of a Jenkins build | |
# to a public directory for browser testing. | |
# Also cleans clones older than 14 days | |
# | |
# Parameters: | |
# $1: Publish target (absolute path, without "$1") | |
# $2: ID to use for the static clone directory | |
# |
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
#!/bin/bash | |
# Make a static clone the working copy of a Jenkins build | |
# to a public directory for browser testing. | |
# Usage: | |
# From within the Jenkins working copy directory. | |
# | |
# version 3 (2012-06-07) |