| ab \ | |
| -n 1000 \ | |
| -c 20 \ | |
| -s 30 \ | |
| -p post-data.txt \ | |
| -T 'application/x-www-form-urlencoded; charset=UTF-8' \ | |
| -v 3 \ | |
| -H "X-Requested-With: XMLHttpRequest" \ | |
| -H "X-Ajax-Referer: http://example.com" \ | |
| -H "Accept-Encoding: gzip, deflate" \ |
| /*********************************************************************************************************************** | |
| *********************************************************************************************************************** | |
| * CONTENTS: | |
| * Native Object | |
| * Object Literal | |
| * Basic Object | |
| * Psuedo-Class | |
| * Self Executing/Invoking Structure | |
| * Lazy Function | |
| * Module Pattern |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| // Load the TCP Library | |
| net = require('net'); | |
| // Keep track of the chat clients | |
| var clients = []; | |
| // Start a TCP Server | |
| net.createServer(function (socket) { | |
| // Identify this client |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
-
Simplest intro to git by github and codeschool - Try Git
-
[Intro to github]
| Moved to https://github.com/ebidel/puppeteer-examples |
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
| #!/bin/bash | |
| MONGO_DATABASE="your_db_name" | |
| APP_NAME="your_app_name" | |
| MONGO_HOST="127.0.0.1" | |
| MONGO_PORT="27017" | |
| TIMESTAMP=`date +%F-%H%M` | |
| MONGODUMP_PATH="/usr/bin/mongodump" | |
| BACKUPS_DIR="/home/username/backups/$APP_NAME" |