Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
- Express Docs, if you want to get started and already know JavaScript this is the place to be
| You appear to be advocating a new: | |
| [ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic | |
| [ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed. | |
| You appear to believe that: | |
| [ ] Syntax highlighting is what makes programming difficult | |
| [ ] Garbage collection is free | |
| [ ] Computers have infinite memory | |
| [ ] Nobody really needs: |
| # A simple Makefile alternative to using Grunt for your static asset compilation | |
| # | |
| ## Usage | |
| # | |
| # $ npm install | |
| # | |
| # And then you can run various commands: | |
| # | |
| # $ make # compile files that need compiling | |
| # $ make clean all # remove target files and recompile from scratch |
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
| #!/bin/sh | |
| # | |
| # This shell script passes all its arguments to the binary inside the | |
| # MacVim.app application bundle. If you make links to this script as view, | |
| # gvim, etc., then it will peek at the name used to call it and set options | |
| # appropriately. | |
| # | |
| # Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This | |
| # version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico | |
| # Weber and Bjorn Winckler, Aug 13 2007). |
| module Colors | |
| def colorize(text, color_code) | |
| "\033[#{color_code}m#{text}\033[0m" | |
| end | |
| { | |
| :black => 30, | |
| :red => 31, | |
| :green => 32, | |
| :yellow => 33, |
Implementation of the Luhn 10 algorithm to check validity of credit card numbers. See http://en.wikipedia.org/wiki/Luhn_algorithm for details on the algorithm.
var validCreditCard = function(a,b,c,d,e){for(d=+a[b=a.length-1],e=0;b--;)c=+a[b],d+=++e%2?2*c%10+(c>4):c;return!(d%10)};
validCreditCard('378282246310005'); //=> true
validCreditCard('378282246310006'); //=> false
// some numbers to test with
// 378282246310005 371449635398431 378734493671000| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |