Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| ''' | |
| Go to https://code.google.com/apis/console/ and: | |
| - create a new project, | |
| - enable access to the calendar api, | |
| - create a "service account" - that will give you an: | |
| * "email address" which is the service_account_name and | |
| * a private key that you need to save on you server | |
| - go to the calendar and share it with the "email address" from above | |
| Make sure your time is synchronized. |
| <?php | |
| trait MetaClass | |
| { | |
| protected $__classMethods = array(); | |
| static protected $__staticMethods = array(); | |
| public function __call($name, $args) | |
| { |
| var express = require('express'); | |
| var cp = require('child_process'); | |
| var app = express.createServer(); | |
| var chrome_count = 0; | |
| app.get('/', function(req, res){ | |
| startChrome(chrome_count++,9222,function chromeStared(err,id,chrome){ | |
| res.send('Chrome '+id+' Started\r\n'); |
| var CreditCard = { | |
| CARDS: { | |
| Visa: /^4[0-9]{12}(?:[0-9]{3})?$/, | |
| MasterCard: /^5[1-5][0-9]{14}$/, | |
| DinersClub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/, | |
| Amex: /^3[47][0-9]{13}$/, | |
| Discover: /^6(?:011|5[0-9]{2})[0-9]{12}$/ | |
| }, | |
| TEST_NUMBERS: $w('378282246310005 371449635398431 378734493671000 '+ | |
| '30569309025904 38520000023237 6011111111111117 '+ |