(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.
(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.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.
Highly recommended things!
This is my five-star list. These are my favorite things in all the world.
A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★
| /* Merge sort in C */ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| // Function to Merge Arrays L and R into A. | |
| // lefCount = number of elements in L | |
| // rightCount = number of elements in R. | |
| void Merge(int *A,int *L,int leftCount,int *R,int rightCount) { | |
| int i,j,k; |
PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS
When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded
Let's fix that! (yeah!)
PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS
Creating a USD charge on a GBP account:
$ curl https://api.stripe.com/v1/charges \
-u REDACTED: \
-d amount=400 \
-d currency=usd \
-d card[number]=4242424242424242 \
-d card[exp_month]=04 \
-d card[exp_year]=16 \
-d card[cvv]=390 \
| #!/usr/bin/env bash | |
| # fresh-chrome | |
| # | |
| # Use this script on OS X to launch a new instance of Google Chrome | |
| # with its own empty cache, cookies, and user configuration. | |
| # | |
| # The first time you run this script, it will launch a new Google | |
| # Chrome instance with a permanent user-data directory, which you can | |
| # customize below. Perform any initial setup you want to keep on every |
| // http://stackoverflow.com/a/14223920/339827 | |
| function iOSVersion() { | |
| var match = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/), | |
| version = [ | |
| parseInt(match[1], 10), | |
| parseInt(match[2], 10), | |
| parseInt(match[3] || 0, 10) | |
| ]; | |
| return parseFloat(version.join('.')); |
| <?php | |
| class Lamp | |
| { | |
| public function turnOn() | |
| { | |
| // code | |
| } | |
| public function turnOff() | |
| { |
Hyde publisher plugin for publishing content to Github Pages (User Pages).
https://github.com/vaidik/vaidik.github.io/tree/dev/publishers
dev branch. master branch, in case of user github pages, is left for serving static files.master branch.