Skip to content

Instantly share code, notes, and snippets.

View watilde's full-sized avatar
👋
Hi

Daijiro Wachi watilde

👋
Hi
View GitHub Profile
@iarna
iarna / README.md
Last active December 15, 2015 21:48
Console Capability Tests

These is a basic console capability test. Clone this repo (https://gist.github.com/58553b13c477de79069e.git) and use node cat console-test.txt to dump the test to your screen. (On Mac & Linux you can just use cat.) There's also a hide-cursor.txt and show-cursor.txt that should do what they say.

All of this is about me trying to figure out what actually is shared cross platform and what isn't.

What I've learned so far is:

東京Node学園祭2015資料メモ

概要

@anaisbetts
anaisbetts / slack-login.html
Created October 26, 2015 05:26
RxJS + Polymer
<dom-module id="slack-login">
<style>
:host {
display: block;
}
#card {
min-width: 500px;
}

Hello, everybody!

So, a brief content warning before I get started: I talk about burnout and stress a lot in this talk, because I’ve spent most of the last couple years working on getting better about both of those things. Right now, things are actually going really well both for me and my team. We’re OK! If you’ve been dealing with these issues yourself, my hope is that you’ll be able to relate without getting bummed out, but if you want to take a pass on hearing about other people’s stress because it triggers your own, I won’t be offended.

That said, hi! I’m Forrest Lehwalder Norvell, and I’m the team lead for the npm command-line interface. If you don’t know what that is, the short version that one of the Bens here came up with yesterday is that npm is a cupboard on the internet where developers cram all the crap that they or somebody else might want to use again someday. The important thing is that it’s a very popular open-source product, and it has a large and enthusiastic community. I have now finishe

@gaearon
gaearon / slim-redux.js
Last active December 3, 2024 06:34
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@azu
azu / Incremental DOM.md
Last active July 13, 2022 16:07
Incremental DOM ざっと見たやつ。追記: 初期バージョンのコードなので最新では異なる場合があります。

Incremental DOM

Introducing Incremental DOM — Google Developers — Medium

Reactやvirtual-dom、Glimmer(Ember)などVirtual DOMの実装は色々あるが、これらのVirtual DOM実装には2つの問題がある

  • 既存のテンプレート言語を利用していない(しにくい)
  • モバイルでのパフォーマンス、特にメモリに関しては大きすぎる

これらを解決するためにIncremental DOMと言うものを作っている(WIP)

@matori
matori / buildinsider-offline-03-1.md
Last active September 10, 2015 13:35
2015-06-13 「Build Insider OFFLINE 第3回 ― Microsoft Edge スペシャル」のメモ

マイクロソフトの Web ブラウザの今までとこれから ~くるよ!Microsoft Edge !!~

春日井 良隆(日本マイクロソフト株式会社 デベロッパー エバンジェリズム統括本部 エバンジェリスト)

Windows 10 には Internet Explorer と新しい Web ブラウザ「Microsoft Edge」が搭載されることが明らかになっています。本セッションでは、Microsoft Edge を発表するに至った市場の動向、既存の Web サイトや Web システムとの互換性を踏まえながら、マイクロソフトが考える今後の Web ブラウザについてお伝えします。

セッションメモ

ERROR_MESSAGE = process.env.HUBOT_ZATSUDAN_ERROR_MESSAGE or 'エラーです'
zatsudan = (msg, zatsudan) ->
request = require('request')
request.post({url : "https://api.apigw.smt.docomo.ne.jp/dialogue/v1/dialogue?APIKEY=XXXXXX",
form : {"utt" : "#{zatsudan}", "place" : "東京", "mode" : "dialog"}}, (err, httpResponse, body) ->
if error or httpResponse.statusCode != 200
return msg.send("雑談に失敗しました")
data = JSON.parse(body)[0]
msg.send "#{data.utt}")
@voluntas
voluntas / mqtt.rst
Last active February 15, 2025 04:35
MQTT とはなんだったのか

MQTT とはなんだったのか

更新:2017-05-09
作者:@voluntas
バージョン:3.14
URL:http://voluntas.github.io/

MQTT をググって調べた人向け