Login into steroids
$ steroids login
Updating the Steroids npm
$ npm update steroids -g
Updating an existing Steroids project (after updating the NPM)
| async.series({ | |
| one: function (callback) { | |
| setTimeout(function () { | |
| callback(null, 1); | |
| }, 200); | |
| }, | |
| two: function (callback) { | |
| setTimeout(function () { | |
| callback(null, 2); | |
| }, 100); |
| .Absolute-Center { | |
| margin: auto; | |
| position: absolute; | |
| top: 0; left: 0; bottom: 0; right: 0; | |
| } | |
| /* | |
| ADVANTAGE: Cross-browser (including IE8-10) | |
| CAVEAT: Height must be declared | |
| source: http://coding.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/ |
| #!/usr/bin/env node | |
| var fs = require("fs"), | |
| path = require("path"); | |
| var p = "../" | |
| fs.readdir(p, function (err, files) { | |
| if (err) { | |
| throw err; | |
| } |
| <!-- Hiding Safari User Interface Components --> | |
| <meta name="apple-mobile-web-app-capable" content="yes" /> | |
| <!-- to set the viewport width to the width of the device, add this to your HTML file: --> | |
| <meta name="viewport" content="width=device-width"> | |
| <!-- to set the initial scale to 1.0, add this to your HTML file: --> | |
| <meta name="viewport" content="initial-scale=1.0"> | |
| <!-- to set the initial scale and to turn off user scaling, add this to your HTML file: --> |
| // Get the current location | |
| navigator.geolocation.getCurrentPosition(showMap); | |
| // your callback function—the showMap function in this example—should take a position object as the parameter as follows: | |
| function showMap(position) { | |
| // Show a map centered at position | |
| } | |
| // use the coords instance variable of the passed-in position object to obtain the latitude and longitude coordinates as follows: | |
| latitude = position.coords.latitude; |
| $(".movedown").click(function () { | |
| console.log('movedown for ' + this.parentNode.id); | |
| }); |
| var textfield_value = $("#textfield_id").val(); | |
| var selected_radio_button = $('input:radio[name=name_of_radio_group]:checked').val(); | |
| var select_selected_value = $('#select_id :selected').val(); | |
| var checked_unchecked = $('#checkbox_id:checked').val(); |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <h3>Dropdownlist Manipulation using jQuery</h3> | |
| <div style="border:3px dashed black;padding:10px;width:40%"> Countries: | |
| <select id="countries"> | |
| </select> | |
| <p> |
| // https://developer.mozilla.org/en-US/docs/JSON | |
| var foo = {}; | |
| foo.bar = "new property"; | |
| foo.baz = 3; | |
| var JSONfoo = JSON.stringify(foo); | |
| // JSONfoo now holds {"bar":"new property","baz":3} | |
| // To make JSONfoo back into a JavaScript object just do: | |
| var backToJS = JSON.parse(JSONfoo); |
Login into steroids
$ steroids login
Updating the Steroids npm
$ npm update steroids -g
Updating an existing Steroids project (after updating the NPM)