This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
coffeedoc: { | |
dist: { | |
target: 'src/coffee', | |
options: { | |
output: 'docs', | |
parser: 'requirejs', | |
renderer: 'html' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###* | |
# hogehoge test description | |
# @class Hoge | |
### | |
class Hoge | |
###* | |
# fuga is number | |
# @property {Number} fuga | |
### | |
@fuga |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tasks/coffeelint.js | |
module.exports = function(grunt) { | |
var lint = require('coffeelint'); | |
/** | |
* Task | |
* task name is 'clint', but helper & global config name are 'coffeelint' | |
*/ | |
grunt.registerMultiTask('clint', 'Lint your CoffeeScript!', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 抜粋 | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
'build-runner': { | |
part: { | |
pairing: { | |
'dist/js' : 'test/spec' | |
}, | |
options: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stylus -I "$HOME/node_modules/nib/lib" | |
@import 'nib'; | |
vendor-prefixes = webkit official | |
* | |
background linear-gradient(top, white, black) | |
box-sizing border-box | |
transition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/sapegin/grunt-stylus | |
grunt.initConfig({ | |
stylus: { | |
main: { | |
files: { | |
'dist/css/main.css' : 'src/stylus/main.styl' | |
}, | |
watch: ['src/stylus/**/*.styl'], | |
options: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function detectVendorFunction(object, methodName) { | |
var upperName = methodName.charAt(0).toUpperCase()+methodName.substr(1), | |
detectedMethod; | |
detectedMethod = object[methodName] || | |
object['webkit'+upperName] || | |
object['moz'+upperName] || | |
object['ms'+upperName] || | |
object['o'+upperName]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// php/ACMS/User/Hook.php として作成 | |
// config.server.phpのHOOK_ENABLEを1にしてください | |
class ACMS_User_Hook extends ACMS_Hook | |
{ | |
/** | |
* @param string &$res | |
* @param ACMS_GET $thisModule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ViewModel Class | |
class VM | |
constructor:(vmElm)-> | |
@elm = vmElm | |
propElms = vmElm.querySelectorAll('[data-prop]') | |
for propElm in propElms | |
key = propElm.getAttribute('data-prop'); | |
if key | |
@[key] = new VMprop(propElm) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ACMS_User_Hook extends ACMS_Hook | |
{ | |
/** | |
* GETモジュール処理前 | |
* 解決前テンプレートの中間処理など | |
* | |
* @param string &$tpl | |
* @param ACMS_GET $thisModule |