A tab completion script that works for Bash. Relies on the BSD md5
command on Mac and md5sum
on Linux, so as long as you have one of those two commands, this should work.
$ gradle [TAB]
// webpack is a module bundler | |
// This means webpack takes modules with dependencies | |
// and emits static assets representing those modules. | |
// dependencies can be written in CommonJs | |
var commonjs = require("./commonjs"); | |
// or in AMD | |
define(["amd-module", "../file"], function(amdModule, file) { | |
// while previous constructs are sync | |
// this is async |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from pymongo import MongoClient | |
from bson import ObjectId | |
import redis | |
def cache_ids(db, cache, cache_key, reset=True, limit=1000): | |
if reset: |
// Animation Specfic stuff related to carousel | |
// All of the following mixins were built by me | |
// so... blame me if they don't work | |
// | |
// This file is not repsonsive. I am working on that right, in a project | |
// | |
// This file does not rely on any other libraries to work. Only SASS | |
@mixin keyframes($name) { | |
@-webkit-keyframes #{$name} { |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
input[type="text"] { | |
/* */ | |
} | |
input[type="submit"]{ | |
/* */ | |
} | |
input[type=button]{ | |
/* */ | |
} |
var request = require('request'); | |
var unzip = require('unzip'); | |
var csv2 = require('csv2'); | |
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip') | |
.pipe(unzip.Parse()) | |
.on('entry', function (entry) { | |
entry.pipe(csv2()).on('data', console.log); | |
}) | |
; |
#Mac OS X