atomita
2015-01-23
- 入力に対して1つの出力が決まっている作業はタスク自動化ツールで処理し
- 浮いた時間で、創造の時間を増やすべし
| angular.module("mymodule", []).directive("foo", -> | |
| { | |
| restrict: 'CA' | |
| link: (scope, element, attrs)-> | |
| nexts = jQuery(element).nextAll() | |
| #ごにょごにょ | |
| return | |
| } | |
| ) |
| ###* | |
| * angular on-flick directive | |
| * | |
| * @author atomita | |
| * @license MIT | |
| * @version 0.2.1 | |
| ### | |
| angular.module("on-flick", []).directive("onFlick", ["$window", ($window)-> | |
| if "ontouchstart" of $window | |
| _get_position = (event)-> |
| numberFormat = (n, r)-> (n = "#{n}") and (r = if r? then "#{n[-3..]},#{r}" else n[-3..]) and (n = n[0...-3]) and arguments.callee(n, r) or r |
| ###* | |
| * angular smooth-scroll | |
| * | |
| * @author atomita | |
| * @license MIT | |
| * @version 0.0.3 | |
| ### | |
| class SmoothScroll | |
| @$inject = [] |
| ###* | |
| * angular at-on-load-element | |
| * | |
| * @author atomita | |
| * @license MIT | |
| * @version 0.0.1 | |
| ### | |
| angular.module("at-on-load-element", []).directive("atOnLoadElement", ["$timeout", ($timeout)-> | |
| { | |
| restrict: "AC" |
| <?php | |
| /** | |
| * CodeIgniterClassLoader | |
| * | |
| * クラス名をキャメルケースからハイフンケースにして、classesディレクトリからファイルを読み込む(アンダースコアは DIRECTORY_SEPARATOR に置換) | |
| * | |
| * @license MIT | |
| * @author atomita | |
| */ |
| (add-hook 'coffee-mode-hook | |
| '(lambda () | |
| (make-local-variable 'coffee-indent-tabs-mode) | |
| (set (make-local-variable 'indent-tabs-mode) coffee-indent-tabs-mode) | |
| )) | |
| (defcustom coffee-indent-tabs-mode indent-tabs-mode | |
| "Indentation can insert tabs if this is t. (coffee-mode)" | |
| :group 'coffee) |
| ~$ sudo npm install -g bower grunt-cli yo |