- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| # -*- coding: utf-8 -*- | |
| # | |
| # Earthquakeを実況モードにするプラグインです | |
| # 普通に起動した後 | |
| # :tsunami #K-ON #tbs | |
| # のようにして実況モードに入ります | |
| # | |
| # すると #K-ON (空白区切りで最初のキーワードのみ) で検索した結果が | |
| # リアルタイムに更新されます | |
| # |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
Original: "Callbacks are imperative, promises are functional: Node's biggest missed opportunity" by James Coglan
Translated by Yuta Okamoto (@okapies)
| #! /your/favourite/path/to/ruby | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2013 Urabe, Shyouhei | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| # rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました | |
| # https://github.com/onk/onkcop | |
| inherit_gem: | |
| onkcop: "config/rubocop.yml" |
| var https = require('https'); | |
| var util = require('util'); | |
| exports.handler = function(event, context) { | |
| console.log(JSON.stringify(event, null, 2)); | |
| console.log('From SNS:', event.Records[0].Sns.Message); | |
| var postData = { | |
| "channel": "#aws-sns", | |
| "username": "AWS SNS via Lamda :: DevQa Cloud", |