- https://twitter.com/ntmlk
- https://app.apiary.io/curltraceparser/editor
- https://www.google.cz/search?q=cucumber&oq=cucumber&aqs=chrome.0.57j59j61j59l2j60.3298j0&sourceid=chrome&ie=UTF-8
- http://en.wikipedia.org/wiki/Behavior-driven_development
- http://visionmedia.github.io/mocha/
- http://pivotal.github.io/jasmine/
- https://github.com/cucumber/cucumber-js
- http://cukes.info/
- http://cukes.info/platforms.html
- https://groups.google.com/forum/#!forum/cukes
The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)
It does not balance, it leaves it to the kernel.
In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)
- http://nodejs.org/api/cluster.html
- Simple cluster example:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: ensure required packages are installed for Java 7 | |
| apt: name=$item state=latest update_cache=yes | |
| with_items: | |
| - python-software-properties | |
| - name: Add Java repository to sources | |
| action: apt_repository repo='ppa:webupd8team/java' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload | |
| var fs = require('fs'); | |
| var AWS = require('aws-sdk'); | |
| AWS.config.loadFromPath('./aws-config.json'); | |
| var s3 = new AWS.S3(); | |
| // File | |
| var fileName = '5.pdf'; | |
| var filePath = './' + fileName; | |
| var fileKey = fileName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var redis = require('redis'); | |
| var db = redis.createClient(); | |
| var app = express(); | |
| // track users online (replace UA string with user id) | |
| app.use(function(req, res, next){ | |
| var ua = req.headers['user-agent']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| inline: { | |
| 'index.html': ['tpl/*.html'] | |
| } | |
| }); | |
| grunt.registerMultiTask('inline', 'Inline AngularJS templates into single file.', function() { | |
| var SCRIPT = '<script type="text/ng-template" id="<%= id %>"><%= content %></script>\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Description: A Git pre-commit hook for Puppet manifests | |
| # Validates Puppet manifest syntax amd style | |
| # * Syntax validation: Using puppet parser as documented on Puppet wiki | |
| # - http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control | |
| # * Style validation: Using puppet lint | |
| # Requirements: | |
| # * Ruby 1.8.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Toto je jen demonstrace moznosti, ktere Google Refine nabizi. Drive ci pozdeji narazite na limit. | |
| 1. Otverit Google Refine, zvolit vytvorit projekt z Web Addresses (URLs) a zadat | |
| https://api.twitter.com/1/followers/ids.xml?screen_name=josefslerka | |
| po té vybrat import ID po radku. | |
| 2. Aplikovat nasledujici formu v sekci UNDO/REDO, tlačítko Apply. |
