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
import js.Lib; | |
class Main{ | |
static function main(){ | |
js.Lib.alert('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
var obj = {}; | |
(obj.Func = function(){}).prototype = {}; |
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
img{ | |
max-width:250px; | |
width: expression(this.width >= this.height ? '250px' : 'auto'); | |
} |
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
add_action('admin_head','page_editor'); | |
function page_editor(){ | |
global $post_type; | |
global $user_ID; | |
// 固定ページの場合HTMLエディターに | |
if($post_type == 'page'){ | |
add_filter('user_can_richedit','__return_false'); | |
} | |
}; |
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
/etc/sysctl.confに | |
net.inet.tcp.delayed_ack=0 |
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){ | |
var config = grunt.config, | |
exec = require('child_process').exec, | |
say = 'say -v kyoko '; | |
var jsDir = 'sample/build/'; // jsのディレクトリ | |
var jsDestDir = 'sample/'; |
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'; | |
// ============================================================================= | |
// 変更点 | |
// ============================================================================= | |
// '<config:prop.subprop>' → '<%= prop.subprop %>' | |
// '<json:file.json>' → grunt.file.readJSON('file.json') | |
// '<file_template:file.js>' → grunt.template.process(grunt.file.read('file.js')) | |
module.exports = function(grunt){ |
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
// ============================================================================= | |
// 参照:https://npmjs.org/doc/json.html | |
// ============================================================================= | |
{ | |
// ------------------------------------------------------------------------- | |
// name : プロジェクト名 [必須] | |
// ------------------------------------------------------------------------- | |
"name":"v0.4", | |
// ------------------------------------------------------------------------- |
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
function paging($query_arr){ | |
global $total_page_num; | |
global $paged; | |
$range = 5; | |
$half = 0; | |
$range_offset = 0; | |
$page_offset = 0; | |
$cnt = '<nav class="paging"><ul>'; | |
// prev | |
if($paged != 1){ |
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 | |
// WordPress post moves to custom post. | |
// 参考 -> http://techblog.55w.jp/?p=224 | |
$posts = get_posts(array( | |
'post_type'=>'post', | |
'numberposts'=>500 | |
)); | |
// カテゴリーからカスタムタクソノミーに移動させるときに利用 | |
// keyがカテゴリー名でvalがターム名 | |
// key is category name,val is term name. |