Skip to content

Instantly share code, notes, and snippets.

View KengoTODA's full-sized avatar
🐉
2024 is for product management

Kengo TODA KengoTODA

🐉
2024 is for product management
View GitHub Profile
@desandro
desandro / require-js-discussion.md
Created January 31, 2013 20:26
Can you help me understand the benefit of require.js?

I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.

From Require.js - Why AMD:

The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"

I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.


@honmaaax
honmaaax / js_dev.md
Created October 30, 2012 01:28
JavaScript開発環境

#JavaScript開発環境


##RequireJS

  • 概要 モジュール管理ライブラリ
  • 導入メリット 複数JSファイルの依存関係を管理しやすくなる
  • 関連サイト
  • 公式サイト - http://requirejs.org/
@leostratus
leostratus / webkit-pseudo-elements.md
Created September 21, 2012 01:44
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@Gab-km
Gab-km / smugnessProblem.rst
Created April 19, 2012 08:01
コードウォッチ:関数型プログラミングの自惚れ問題

コードウォッチ:関数型プログラミングの自惚れ問題

原文:http://www.sdtimes.com/link/36534
著者:Larry O'Brien

僕は関数型プログラミングが好きだ。次の10年にかけてコードの革命を起こしていくだろうと考えている:言語はより関数型の機能を採用していくだろうし、開発者はより関数型の技術を導入していくだろうし、いくつかの点では、関数型プログラミングの原則はコードを組み立てていく上で「自然で」もっとも明確なやり方だとみんな考えるようになっていくだろう。

だけど、僕はもうこのシナリオを本気にしちゃいない。関数型プログラミングは、ワクワクするものを学ぶことに興味があると言っている主流のプログラマにとって明白な、大きな問題を抱えている:関数型プログラマーは自惚れ野郎どもだってことだ。

@VoQn
VoQn / empty_array_alert.js
Created May 13, 2011 02:24
ブラウザのアドレスバーで javascript: と先頭につけて Enter すると "it is fine" ってアラートしてくれるよ!!
_=-~-~-~[];alert(([][[]]+[])[_+_-_/_]+(!+[]+[])[_-_]+' '+([][[]]+[])[_+_-_/_]+(![]+[])[_]+' '+(![]+[])[_-_]+([][[]]+[])[_+_-_/_]+([][[]]+[])[_+_]+(!+[]+[])[_]);
@todesking
todesking / ResourceLeakChecker.java
Created January 21, 2011 04:30
明示的な開放を必要とするリソースが正しく開放されたかチェックする
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details. */
/**
* 明示的な開放が必要なリソースクラスが使用する。
*
* finalizeメソッドにより、開放されていないリソースがあった場合標準エラー出力に警告を出す。