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 | |
SYNC_COLOR_YELLOW="\033[33m" | |
SYNC_COLOR_GREEN="\033[32m" | |
SYNC_COLOR_NONE="\033[0m" | |
git_branch() { | |
branch=$(git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'}) | |
} |
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 http-equiv="Content-type" content="text/html; charset=utf-8"/> | |
<title>ti</title> | |
<script type="text/ruby" charset="utf-8"> | |
dirs = `ls` | |
</script> | |
</head> | |
</html> |
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 Animal = this.Animal = new Class({ | |
initialize: function(){ | |
console.log('Animal'); | |
} | |
}); | |
}).call(this); |
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
body, ul, li, p, h1, h2, h3, h4, address, ol, dd, dt, dl, fieldset, form, label, input, textarea, legend, a, a:link, img { | |
color: #000; | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
border: none; | |
font-style: normal; | |
font-weight: normal; | |
font-family: Georgia, 'Times New Roman', Times, serif; | |
text-decoration: none; |
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
/* | |
--- | |
script: nuTabs.js | |
decription: nuTabs - MooTools-based, transitionified switcherification | |
license: MIT-style license. | |
authors: | |
- Oskar Krawczyk (http://nouincolor.com/) | |
requires: | |
core:1.2.3: | |
- Class.Extras |
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
// Scott Kyle (http://appden.com) | |
function $E(tag, props) { | |
if(typeof props == 'string') | |
props = {style: props}; | |
if(typeof tag == 'string') { | |
var id = tag.match(/#([\w-]+)/); | |
var classes = tag.match(/(?:\.[\w-]+)+/); | |
tag = tag.replace(/[#.].*/, ''); | |
props = props || {}; |
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
// $log will not cause errors in IE | |
// Author: Oskar Krawczyk (oskar dot krawczyk dot com after nouincolor) | |
Window.implement({ | |
$log: function() { | |
if(typeof console!=='undefined' && typeof console.log !== 'undefined') { | |
console.log(arguments.length <= 1 ? arguments[0] : arguments); | |
} | |
} | |
}); |
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
/* Returns all links that are not on the same domain as the website is. | |
* | |
* $$('a:external') - Automatically checks for the domain name | |
* $$('a:external(example.com)') - Set a custom, base domain | |
* | |
* Example: | |
* | |
* $$('a:external').each(function(popup) { | |
* popup.addEvent('click', function(e) { | |
* e.stop(); |
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
Array.implement({ | |
first: function() { | |
return this[0]; | |
}, | |
rest: function() { | |
return this.slice(1, this.length); | |
}, | |
drop: function(n) { |
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
/* Equalizes dimensions of selected elements. | |
* | |
* els.equalize(); | |
* | |
* Example: | |
* | |
* $$('.boxes').equalize('height', 'max', 20); | |
* $$('.boxes').equalize('width', 'min'); | |
* $$('.boxes').equalize('height'); | |
* |
NewerOlder