(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| ## uploading to google | |
| ## rev: 22 Aug 2012 16:07 | |
| det=`date +%F` | |
| browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1" | |
| username="[email protected]" | |
| password="password" | |
| accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE |
| # Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
| # Change example.com (server_name) to your website url | |
| # Change /path/to/your/root to the correct value | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /path/to/your/root; | |
| index index.html; |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
| </head> | |
| <body> |
| /** | |
| * References: | |
| * [1] ftp://ftp.idsoftware.com/idstuff/source/quake3-1.32b-source.zip | |
| * [2] http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf | |
| * [3] http://en.wikipedia.org/wiki/Newton%27s_method | |
| * [4] https://developer.mozilla.org/en/JavaScript_typed_arrays | |
| * [5] http://en.wikipedia.org/wiki/Fast_inverse_square_root | |
| */ | |
| const QUAKEx32 = 0x5f3759df |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; | |
| FLUSH PRIVILEGES; | |
| Edit /etc/mysql/my.cnf | |
| Comment address binding bind-address = 127.0.0.1 to #bind-address = 127.0.0.1 |
| /* | |
| * Module dependencies. | |
| */ | |
| var express = require('express') | |
| , routes = require('./routes') | |
| , user = require('./routes/user') | |
| , common = require('./routes/common') | |
| , fs = require('fs') | |
| , http = require('http') | |
| , util = require('util') |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |