The only cross-platform browser that fits in a Gist!
One line install. Works on Linux, MacOSX and Windows.
$> npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
from datetime import datetime | |
from zlib import compress | |
def serialize(x): | |
if isinstance(x, dict): | |
return '<<' + '\n'.join(serialize(k) + ' ' + serialize(v) for k, v in x.items()) + '>>' | |
if isinstance(x, list): | |
return '[' + ' '.join(serialize(it) for it in x) + ']' | |
return str(x) |
using System; | |
namespace FortyOneShades | |
{ | |
class Program | |
{ | |
static int[] values = new int[]{ | |
0x276AD9, | |
0x3E6FD9, | |
0x3A6FDE, |
#include "particles.h" | |
#include <assert.h> | |
#include <algorithm> | |
namespace particles | |
{ | |
void ParticleData::generate(size_t maxSize) | |
{ | |
m_count = maxSize; | |
m_countAlive = 0; |
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.
(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.