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
# update pacakges | |
sudo apt-get update | |
#################### | |
# Add the Node.js maintained repositories to your Ubuntu package source list, this will ensure latest stable version | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
# Install nodejs with apt-get (the -y flag will accept any question) | |
sudo apt-get install nodejs -y |
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
cd ~ | |
##If you want to install OpenJDK | |
#sudo apt-get update | |
#sudo apt-get install openjdk-8-jre-headless -y | |
###Or if you want to install Oracle JDK, which seems to have slightly better performance | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="lt-ie7"> <![endif]--> | |
<!--[if IE 8]> <html class="lt-ie8"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=1024, maximum-scale=2" /> | |
<title></title> |
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
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } | |
* html .clearfix { zoom: 1; } /* IE6 */ | |
*:first-child+html .clearfix { zoom: 1; } /* IE7 */ |
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
li[class~='red'] {} /*Selects all li that have the class red and other classes*/ | |
li[class|='red'] {} /*Selects li that have hyphen separeted values, ie: 'red-button', 'red-external'*/ | |
li[class*='red'] {} /*selects all li that have the a class tat has red in it ie: 'ared', 'redid', 'xxxxxred'*/ | |
li[class^='red'] {} /*Selects all li which class starts with 'red', ie: 'redid', 'redxxx'*/ | |
li[class$='red'] {} /*selects li which class ends with value 'red', ie: 'xxxred', 'ared'*/ |
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
<!-- Brackets highligut --> | |
<dict> | |
<key>name</key> | |
<string>Bracket all</string> | |
<key>scope</key> | |
<string>bracket.all</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#ff0000</string> |
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
/* | |
|----------------------------------------------------------------------------- | |
| Serialize Object | |
|----------------------------------------------------------------------------- | |
*/ | |
$.fn.serializeObject = function() | |
{ | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, 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
window.ObjectDump = function(obj, name) { | |
this.result = "[ " + name + " ]\n"; | |
this.indent = 0; | |
this.dumpLayer = function(obj) { | |
this.indent += 2; | |
for (var i in obj) { | |
if(typeof(obj[i]) == "object") { | |
this.result += "\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
{ | |
"files": | |
{ | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"moment+langs.min" : "https://rawgithub.com/moment/moment/2.2.1/min/moment+langs.min.js", | |
"Bootstrap-2.3.3-combined.css" : "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css", | |
"Bootstrap-2.3.3.js": "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js" | |
}, | |
"packages": | |
{ |
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
.placeholder (@color){ | |
&::-webkit-input-placeholder { color: @color } | |
&:-moz-placeholder {color: @color } | |
&::-moz-placeholder {color: @color } | |
&:-ms-input-placeholder {color: @color } | |
} | |
.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) { | |
text-shadow: @string; | |
} | |
.box-shadow (@string) { |