Applied conditional classes to HTML element to allow targeting of specific Internet Explorer browser versions. source: http://www.paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
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
// the original Animal class and sayName method | |
function Animal(name, numLegs) { | |
this.name = name; | |
this.numLegs = numLegs; | |
} | |
Animal.prototype.sayName = function() { | |
console.log("Hi my name is " + this.name); | |
}; | |
// define a Penguin class |
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 Person(first,last,age) { | |
this.firstname = first; | |
this.lastname = last; | |
this.age = age; | |
//private property | |
var bankBalance = 7500; | |
// set public method to make bankbalance available | |
this.getBalance = function() { | |
// your code should return the bankBalance |
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
var xhr = new XMLHttpRequest() | |
xhr.open("GET", "http://www.themwebs.me/", false); | |
xhr.send(); | |
console.log(xhr.status); | |
console.log(xhr.statusText); |
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
abstract | |
boolean break byte | |
case catch char class const continue | |
else enum export extends | |
false final finally float for function | |
goto | |
if implements import in instanceof int interface | |
long | |
native new null | |
package private protected public |
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
tail -f /var/log/tomcat6/catalina.out | grep |
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 ng-app="my-app"> <!-- attach application module to page --> | |
<body ng-controller="StoreController as store"> <!-- attach controller function to page --> | |
<h1 ng-show="name">Hello, {{name}}</h1> <!-- display a section based on an Expression --> | |
<div ng-repeat="product in store.product"></div> <!-- repeat a section for each item in an Array --> | |
</body> | |
</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
/usr/bin/mysqladmin -u root password 'new-password' | |
/usr/bin/mysqladmin -u root -h mannuel-MacBookPro password 'new-password' |
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/mysql_secure_installation |
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 /usr ; /usr/bin/mysqld_safe & |