- Authoring Ebooks: http://www.authoringebooks.com/
- Create Your Own Programming Language: http://createyourproglang.com/
- Exceptional Ruby: http://exceptionalruby.com/
- JavaScript Performance Rocks: http://javascriptrocks.com/performance/
- Redmine Tips: http://www.redminetips.com/
- The SPDY Book: http://spdybook.com/
- Rails 3 Upgrade Handbook: http://www.railsupgradehandbook.com/
- Refactoring Redmine: http://www.refactoringredmine.com/book/
- Bootstrapping Design: http://bootstrappingdesign.com/
- Recipes With Backbone:
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 dependencies | |
| var http = require('http'), | |
| url = require('url'); | |
| /** | |
| * UrlReq - Wraps the http.request function making it nice for unit testing APIs. | |
| * | |
| * @param {string} reqUrl The required url in any form | |
| * @param {object} options An options object (this is optional) |
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
| require 'rubygems' | |
| require 'kconv' | |
| require 'csv' | |
| require 'vpim' | |
| $KCODE='u' | |
| #Authors:: takuya_1st | |
| #Copyright:: @takuya_1st | |
| #License:: GPL | |
| class CSV | |
| ## CSVファイルを読み込んで一行目を見出し行として、全部をハッシュに読み込む |
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
| # Here a few bash one-liners that helped me analyze / fight a weak DOS attack against debuggable.com. Mostly for future reference. | |
| # The attacker was opening lots of tcp connections without sending data, I believe it's called a SYN flood, see: http://tools.ietf.org/html/rfc4987#section-3.2 | |
| # Step 0: Check what is going on at port 80 | |
| $ netstat -tan | grep ':80 ' | awk '{print $6}' | sort | uniq -c | |
| # Step 1: Increase the number of available fds | |
| $ ulimit -n 32000 | |
| # Step 2: Restart your webserver, for me: |
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
| #run as sudo | |
| apt-get install python-setuptools curl | |
| easy_install supervior | |
| curl https://raw.github.com/gist/176149/88d0d68c4af22a7474ad1d011659ea2d27e35b8d/supervisord.sh > /etc/init.d/supervisord | |
| #to run it | |
| chmod +x /etc/init.d/supervisord | |
| #adding to autostart |
https://github.com/chrisa/node-dtrace-provider
https://github.com/cheongwy/node-scrypt
https://github.com/forward/node-hdfs
https://github.com/Sembiance/node-number-smusher
https://github.com/bolgovr/node-ip2location
https://github.com/xenophy/node-iconv
https://github.com/JulesAU/node-msgpack
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
| $(function () { | |
| var article_root = $("article"); | |
| var search_api = "https://www.googleapis.com/customsearch/v1element"; | |
| var apikey = "AIzaSyCVAXiUzRYsML1Pv6RwSG1gunmMikTzQqY"; | |
| var cseid = "004387629570218579707:w1sg4iph0mc"; | |
| var query = location.hash.match(/^\#q=([^&]+)/)[1]; | |
| document.title = "'" + query + "' の検索結果 - 開発な日々"; | |
| var result_url = [search_api, "?key=", apikey, "&rsz=large&num=8&cx=", cseid, "&q=", encodeURI(query), "&callback=?"].join(""); | |
| $("input[name='q']").val(query); | |
| $.getJSON(result_url, function (data) { |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
- Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
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
| Array.prototype.range = function(str) { | |
| var inclusive = str.indexOf("...") > -1; | |
| var p = str.split( ((inclusive) ? "..." : "..") ); | |
| p[0] = parseInt(p[0]), p[1] = parseInt(p[1]) - (( inclusive ) ? 0 : 1); | |
| var n = []; for ( var i=p[0]; i<=p[1]; i++ ) n.push(i); return n; | |
| } | |
| console.log( [].range("1...20") ); | |
| // prints |