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 Forma = function(){}; | |
| Forma.prototype = { | |
| getArea: function() | |
| { | |
| console.log('Get Area from Forma'); | |
| } | |
| }; | |
| var Cuadrado = function() | |
| { |
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
| jQuery(function(){ | |
| jQuery('input[type=submit]').click(function(evt){ | |
| evt.preventDefault(); | |
| var string = jQuery('input[type=text]').val(); | |
| var simpleParser = {}, | |
| advancedParser = {}, | |
| wonderfulParser = {}; | |
| PARSER.call(simpleParser); |
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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: mongodb | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the mongodb data-store | |
| # Description: starts mongodb using start-stop-daemon |
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
| #!/bin/bash | |
| NODE_VERSION=0.4.10 | |
| NPM_VERSION=1.0.22 | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential git-core nginx libssl-dev pkg-config curl | |
| # Install node | |
| mkdir -p $HOME/local/node | |
| git clone git://github.com/joyent/node.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
| // HOWTO: load LABjs itself dynamically! | |
| // inline this code in your page to load LABjs itself dynamically, if you're so inclined. | |
| (function (global, oDOC, handler) { | |
| var head = oDOC.head || oDOC.getElementsByTagName("head"); | |
| function LABjsLoaded() { | |
| // do cool stuff with $LAB here | |
| } |
NewerOlder