⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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
// http://www.wakuworks.com/test/jsdoc/ | |
/** | |
* 名前空間の説明 | |
* @namespace | |
*/ | |
var Namespace = Namespace || {}; | |
/** | |
* クラスの説明など |
This file contains 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
# | |
# A virtual host using WordPress | |
# /etc/nginx/conf.d/example.com.conf | |
# | |
server | |
{ | |
listen 8080; | |
client_max_body_size 10m; | |
server_name .example.com; |
This file contains 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
// 個別で js を minify して gzip したかったので、こんな感じになった | |
// ファイル名などにスペースが入ってた時どうするのか | |
module.exports = function(grunt) { | |
'use strict'; | |
var src = 'shared/js/*.js', | |
files = grunt.file.expandFiles(src), | |
suffix = '.min', | |
minFiles = {}, | |
gzFiles = {}; |
This file contains 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
// jQuery、timeline.js を事前に読み込んでおく必要あり | |
// | |
// timeline.js について | |
// - http://hitsujiwool.tumblr.com/post/31191259501/timeline-js | |
// - https://github.com/hitsujiwool/timeline | |
// 使い方1:一括指定して実行 | |
var totalFrames = 200, | |
tl = $("div").timeline(totalFrames) |
This file contains 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 | |
try { | |
ob_start(); | |
//warningが出るコード | |
$file = file_get_contents('./not_found_file.txt'); | |
$warning = ob_get_contents(); | |
ob_end_clean(); | |
//Warningがあれば例外を投げる | |
if ($warning) { |
This file contains 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) | |
{ | |
'use strict'; | |
grunt.config.init({ | |
html_clean: { | |
html: { | |
src: 'sample.html', | |
newline: '\r\n', // 省略可 | |
}, |
This file contains 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) | |
{ | |
'use strict'; | |
var ROOT_PATH = '.', | |
TEMPLATE_PATH = ROOT_PATH + '/templates'; | |
grunt.config.init({ | |
template: { | |
hoge: { |
This file contains 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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
encoding: { | |
standardSetting: { | |
toEncoding: 'SJIS' | |
, files: { | |
'dest/result.txt': 'src/original.txt' | |
, 'dest/concat.txt': ['src/concat/*.txt'] |
OlderNewer