This file contains hidden or 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> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="module_a.js"></script> | |
<script src="module_b.js"></script> | |
<script src="xtending_modules.js"></script> | |
<meta charset=utf-8 /> | |
<title>Modular js</title> | |
<!--[if IE]> |
This file contains hidden or 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 a = function() { | |
//code here | |
}(); | |
var b = function() { | |
// code here | |
return { | |
//code here | |
} |
This file contains hidden or 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 port = process.env.PORT || 3000; | |
app.listen(port); |
This file contains hidden or 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
# Go to your your plugin directory (create it if it doesn't exist) | |
cd ~/.local/share/gedit/plugins | |
# Clone the git repository with the patch | |
git clone git://github.com/MadsBuus/gedit-snapopen-plugin.git | |
# Create the links | |
ln -s gedit-snapopen-plugin/snapopen.plugin . | |
ln -s gedit-snapopen-plugin/snapopen . |
This file contains hidden or 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
# Create a new stack | |
heroku create --stack cedar | |
# it will reply something like this | |
# Creating stark-moon-1526... done, stack is cedar | |
# http://stark-moon-1526.herokuapp.com/ | [email protected]:stark-moon-1526.git | |
# Change repository URL | |
git remote set-url heroku [email protected]:stark-moon-1526.git |
This file contains hidden or 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
# Clone this gist | |
git clone git://gist.github.com/1234911.git ~/your/path/to/faf | |
# Change rights | |
chmod 755 ~/your/path/to/faf/fah.sh | |
# Add this line to your ~\.bashrc | |
alias faf='~/your/path/to/faf.sh' | |
# Close your terminal and open a new one |
This file contains hidden or 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
<p>First, undefined is defined to <em id="step1"></em></p> | |
<p>Then, undefined is redefined to <em id="step2"></em></p> |
This file contains hidden or 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
<p>First, undefined is defined to <em id="step1"></em></p> | |
<p>Then, undefined is redefined to <em id="step2"></em></p> |
This file contains hidden or 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 Animal = { | |
Dog : {/* Lots of stuff here */}, | |
Cat : (function() { | |
var c = { | |
list : ["Mistigri", "Felix"], | |
show : function() { | |
/* Using the 'c' alias is much shorter */ | |
console.log(c.list.join()); | |
} | |
} |
This file contains hidden or 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 Animal = { | |
Dog : {/* lots of stuff here */}, | |
Cat : { | |
list : ["Mistigri", "Felix"], | |
show : function() { | |
/* This is where it gets long */ | |
console.log(Animal.Cat.list.join()); | |
} | |
} | |
}; |