(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.
| /** | |
| * AppleScript to launch iterm2 terminals/tabs with configurable: | |
| * ~ Name <name> | |
| * ~ List of commands <cmds> | |
| * ~ Split behavior horizontal(h) or vertical(v) <split> :: (h, v) | |
| * | |
| * Run from terminal with `osascript iterm-launcher.js`. | |
| * Don't unfocus with the mouse/keyboard while executing the script. | |
| * | |
| * JS port of https://github.com/luismartingil/scripts/blob/master/iterm_launcher02.applescript |
| # 內容 | |
| # repo 位置 | |
| - https://github.com/facebook/react | |
| - https://github.com/facebook/flux | |
| # 官網 | |
| - React | |
| * http://facebook.github.io/react/ |
| # Elixir has pipes `|>`. Let's try to implement those in Ruby. | |
| # | |
| # I want to write this: | |
| # | |
| # email.body | RemoveSignature | HighlightMentions | :html_safe | |
| # | |
| # instead of: | |
| # | |
| # HighlightMentions.call(RemoveSignature.call(email.body)).html_safe | |
| # |
(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.
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Copyright (C) 2014 ADDY OSMANI <addyosmani.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
http://www.reinteractive.net/posts/116-12-tips-for-the-rails-asset-pipeline
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| # Another example for: http://onor.io/2014/03/31/partial-function-application-in-elixir/ | |
| defmodule PartFuncs do | |
| defp addfun(x, y), do: x + y | |
| # return a partially applied function | |
| def add(a), do: &addfun(a, &1) | |
| # could also easily be written as: addfun(a, b) | |
| def add(a, b), do: (&addfun/2).(a, b) |
| Ruby 2.1.0 in Production: known bugs and patches | |
| Last week, we upgraded the github.com rails app to ruby 2.1.0 in production. | |
| While testing the new build for rollout, we ran into a number of bugs. Most of | |
| these have been fixed on trunk already, but I've documented them below to help | |
| anyone else who might be testing ruby 2.1 in production. | |
| @naruse I think we should backport these patches to the ruby_2_1 branch and | |
| release 2.1.1 sooner rather than later, as some of the bugs are quite critical. | |
| I'm happy to offer any assistance I can to expedite this process. |