I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| var _ = Underscore.load(); | |
| function fetchRatesFromCryptsy() { | |
| var cryptsyRatesUrl = "http://pubapi.cryptsy.com/api.php?method=marketdatav2"; | |
| var response = UrlFetchApp.fetch(cryptsyRatesUrl); | |
| // TODO(kellyc): check for errors | |
| var json = response.getContentText(); | |
| var data = JSON.parse(json); | |
| return data['return']['markets']; | |
| } |
| var loseCtx = context.gl.getExtension("WEBGL_lose_context"); | |
| //May not exist in some browsers, or if WebGLInspector is enabled | |
| if (loseCtx) { | |
| //Attach a mouse click to the canvas... | |
| canvas.addEventListener("mousedown", function() { | |
| //Force the canvas to lose its WebGL context | |
| loseCtx.loseContext(); | |
| //Here you may want to present the user with a progress indicator |
(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.
Between [your name] and [their name]
You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.
| #!/bin/sh | |
| if [ "$#" -ne 1 ]; then | |
| echo "Use: $0 inputfile" | |
| exit | |
| fi | |
| INPUTFILE=$1 | |
| OUTPUTFILE=$(echo $INPUTFILE | sed 's/\.[^\.]*$//')".mp4" |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src='https://www.google.com/recaptcha/api.js'></script> | |
| <script> | |
| function registerAPI(form) { | |
| var params = { | |
| username: form.username.value, | |
| password: form.password.value, | |
| email: form.email.value, |
To accomplish this tutorial you already need a previous copy of OSX installed on VMWare Player or Workstation.
First of all you need to acquire a legal copy of OSX El Capitan from the App Store. This tutorial will not cover this part. Sorry :)
Download the latest version of VMWare Unlocker and use the relative binary to unlock it ( based on your Host OS ).
| sysctl -w fs.file-max=12000500 | |
| sysctl -w fs.nr_open=20000500 | |
| ulimit -n 4000000 | |
| sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000' | |
| sysctl -w net.ipv4.tcp_rmem='1024 4096 16384' | |
| sysctl -w net.ipv4.tcp_wmem='1024 4096 16384' | |
| sysctl -w net.core.rmem_max=16384 | |
| sysctl -w net.core.wmem_max=16384 | |
| wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| sudo dpkg -i erlang-solutions_1.0_all.deb |

