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 get-sprite($imgs, $name, $resize : false) | |
{ | |
$dimensions: true !default; | |
$clean-up: true !default; | |
$layout:vertical !default; | |
$map: sprite-map($imgs, $layout: $layout, $cleanup: $clean-up, $spacing: 15px); | |
background: $map no-repeat; | |
@include sprite($map, $name, $dimensions, 0, 0); |
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
module.exports = function(jObj) { | |
var obj; | |
obj = { | |
_y: 1000, | |
_x: 1000, | |
_opacity: 0, | |
dom: jObj | |
}; | |
Object.defineProperty(obj, "y", { | |
get: 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
letter_spacing($spacing) | |
letter-spacing: unit($spacing/1000, 'em'); | |
font_size($size, $leading) | |
font-size $size | |
if $leading | |
line-height: unit(100 * ($leading / $size), "%") |
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
_get_images: (data, imgs=[])-> | |
for prop, val of data | |
if /(jpg|png|gif)$/.test(data[prop]) | |
imgs.push data[prop] | |
if Array.isArray(data[prop]) | |
for c in data[prop] | |
@_get_images c, imgs | |
return imgs |
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
$(document).ready(function(){ | |
try { | |
jsToggle(); | |
} catch (jsToggleE){ | |
} | |
}); | |
function jsToggle() | |
{ |
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
iPad | |
1024 × 690 In landscape on iOS 4.3 | |
1024 × 672 In landscape on iOS 5 | |
768 × 946 In portrait on iOS 4.3 | |
768 × 928 In portrait on iOS 5 | |
1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3 | |
1024 × 644 Always showing bookmarks bar in landscape on iOS 5 | |
768 × 916 Always showing bookmarks bar in portrait on iOS 4.3 |
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
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.2.17/lib/mysql2/mysql2.bundle | |
mysqladmin -u root -p create database_name_development | |
mysql -u root table_name < database/dump.sql | |
scp root@domain.com:file.txt file.txt |
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 is_mobile() { | |
if (navigator.userAgent.match(/Android/i) || | |
navigator.userAgent.match(/webOS/i) || | |
navigator.userAgent.match(/iPhone/i) || | |
navigator.userAgent.match(/iPad/i) || | |
navigator.userAgent.match(/iPod/i) || | |
navigator.userAgent.match(/BlackBerry/) || | |
navigator.userAgent.match(/Windows Phone/i) || | |
navigator.userAgent.match(/ZuneWP7/i) | |
) { |
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
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
PURPLE="\[\033[0;35m\]" | |
BROWN="\[\033[0;33m\]" | |
BLUE="\[\033[0;34m\]" | |
CYAN="\[\033[0;36m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
WHITE="\[\033[1;37m\]" |
OlderNewer