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
// add js-clear class to input to enable | |
function defaultInputs(className) { | |
$('input.' + className).each( function () { | |
$(this).bind('focus', function () { | |
$this = $(this); | |
if($this.val() == this.defaultValue) { | |
$this.val(''); | |
} | |
}); | |
$(this).bind('blur', 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
// for illustration only. need refactoring as it shows a non-exsistant defined group by sending an empty string to show | |
// add groups | |
ADMIN_SHOW_HIDE.addFieldGroup('Gallery Images', ['Images']); | |
function debugField (selector) { | |
objectForSymphonyLabel(selector).addClass('debug'); | |
} | |
// actions |
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
/* | |
Copyright (c) 2010, The Barbarian Group | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that | |
the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, this list of conditions and | |
the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and |
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
# Aliases | |
# tar | |
alias targz="tar -cvzf" | |
# git | |
alias gc="git commit -m" | |
alias gca="git commit -am" | |
alias gs="git status" | |
alias ga="git add" |
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
# description: build script for project libraries, external libraries including jslint | |
# used on The Big Art Mob web app | |
# | |
# usage: `make all` or `make lint` | |
#` | |
# requirements: node + npm for uglify-js, jslint. | |
# App.js | |
# |
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
# From http://winhelp2002.mvps.org/hosts.htm | |
#=============================================================================== | |
# [Start of entries generated by WinHelp2002] | |
# | |
# [Misc A - Z] | |
127.0.0.1 fr.a2dfp.net | |
127.0.0.1 m.fr.a2dfp.net |
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> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> | |
<script> | |
$(function () { | |
$("img[data-lowres]").each(function (index, el) { | |
$(el).attr({src: (window.devicePixelRatio) ? $(el).data("highres") : $(el).data("lowres") }); | |
}); | |
}); | |
</script> |
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
_.mixin({ | |
body : function(array, fromHead, fromTail) { | |
fromHead = (_.isUndefined(fromHead)) ? 1 : fromHead; | |
fromTail = (_.isUndefined(fromTail)) ? 1 : fromTail; | |
if (array.length < 2) return []; | |
return array.slice(fromHead, array.length-fromTail-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
#!/usr/bin/env node | |
var walk = require("./node-walk/lib/walk.js"), | |
fs = require('fs'), | |
path = require('path'); | |
walker = walk.walk("./../", { followLinks: false }); | |
var counter = { | |
clean : 0, |
OlderNewer