Based on:
$ sudo apt-get install python-software-properties
Based on:
$ sudo apt-get install python-software-properties
{ | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Color Scheme - Default/Spacedust.tmTheme", | |
"detect_indentation": true, | |
"draw_white_space": "selection", | |
"folder_exclude_patterns": | |
[ | |
".sass-cache", | |
"tmp" | |
], |
// 12 column grid | |
$column-width: 60px !default | |
$gutter-width: 20px !default | |
$grid-columns: 12 !default | |
$grid-width: $column-width * $grid-columns + $gutter-width * ($grid-columns - 1) | |
@function column-width($n) | |
@return $column-width * $n + $gutter-width * ($n - 1) |
# Easy namespacing of classes and objects. | |
# | |
# name - The String containing namespaces up to but not including the class | |
# name. | |
# | |
# Examples | |
# # Using a class | |
# class module("Foo.Bar").Baz | |
# doStuff: -> | |
# console.log "doing stuff" |
- (void)adjustViewForTextField:(UITextField*)textField animated:(BOOL)animated { | |
CGRect frame = self.view.frame; | |
double screenSize = 480.0; | |
double topHeight = 20.0; | |
double keyboardSize = 216.0; | |
double keyboardPos = screenSize - keyboardSize; | |
double textFieldPos = topHeight + textField.frame.origin.y; | |
double textFieldHeight = textField.frame.size.height; | |
double textFieldBottom = textFieldPos + textFieldHeight; |
formatPrice = (price)-> | |
return '0' if isNaN(price) | |
price = price + '' | |
price = price.split(/\./) | |
decimals = price[1] | |
price = price[0] | |
iterations = price.length / 3 | |
i = price.length | |
segments = [] |
require 'sass_extensions' |
web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf | |
fastcgi: /usr/local/sbin/php-fpm | |
db: /usr/local/bin/mysqld |
/* line 3, tooltip.css.sass */ | |
.tooltip { | |
margin-top: 5px; | |
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); | |
opacity: 0; | |
position: absolute; | |
padding: 7px 0 14px; | |
} | |
/* line 10, tooltip.css.sass */ | |
.tooltip i { |
TimeFormatter = | |
to_pretty: (date)-> | |
now = new Date() | |
date = new Date(date) | |
# Time ago in seconds | |
a = (now - date) / 1000 | |
if a is 0 then 'akkurat nå' | |
else if a is 1 then 'ett sekund siden' |