This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
| /* | |
| http://stackoverflow.com/questions/4915462/how-should-i-do-floating-point-comparison | |
| */ | |
| var EPSILON = 0.000001; | |
| function fp_less_than(A, B, Epsilon) { | |
| Epsilon = Epsilon || EPSILON; | |
| return (A - B < Epsilon) && (Math.abs(A - B) > Epsilon); | |
| }; |
| var | |
| // Local ip address that we're trying to calculate | |
| address | |
| // Provides a few basic operating-system related utility functions (built-in) | |
| ,os = require('os') | |
| // Network interfaces | |
| ,ifaces = os.networkInterfaces(); | |
| // Iterate over interfaces ... |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| /** | |
| * Example : | |
| * var a = [2,7,9]; | |
| * binaryInsert(8, a); | |
| * | |
| * It will output a = [2,7,8,9] | |
| * | |
| */ | |
| function binaryInsert(value, array, startVal, endVal){ |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)These rules are adopted from the AngularJS commit conventions.
Install on OS X: sudo gem install sass
Version info: sass -v