Skip to content

Instantly share code, notes, and snippets.

@atomita
atomita / file0.coffee
Created July 23, 2013 11:46
AngularJS と jQuery を併用するとき ref: http://qiita.com/atomita@github/items/0ec2ffb0f81c9e48247e
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"
@atomita
atomita / code-igniter-class-loader.php
Created September 26, 2013 11:43
CodeIgniterにクラスのオートローディングのサポートがなかったので ref: http://qiita.com/atomita@github/items/92c28949915362d55b9c
<?php
/**
* CodeIgniterClassLoader
*
* クラス名をキャメルケースからハイフンケースにして、classesディレクトリからファイルを読み込む(アンダースコアは DIRECTORY_SEPARATOR に置換)
*
* @license MIT
* @author atomita
*/
@atomita
atomita / file0.txt
Last active August 29, 2015 13:56
coffee-modeのインデントをタブ文字にする ref: http://qiita.com/atomita/items/49af8a49a1af0c461225
(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)
@atomita
atomita / file0.sh
Created June 11, 2014 12:29
Yeomanを使ってWordPressの初期構築 ref: http://qiita.com/atomita/items/ae92187fa87a1df0adf8
~$ sudo npm install -g bower grunt-cli yo

gulp.js について

atomita
2015-01-23

2行

  • 入力に対して1つの出力が決まっている作業はタスク自動化ツールで処理し
  • 浮いた時間で、創造の時間を増やすべし

Markdown について

atomita
2015-01-23

3行

  • 文書の装飾といえばHTMLでしょ
  • でも書くの面倒じゃん