Skip to content

Instantly share code, notes, and snippets.

@torounit
torounit / browserSync.js
Last active October 14, 2018 16:07
npm scripts
var browserSync = require("browser-sync");
browserSync({
proxy: 'localhost:9292',
files: [
"./css/**/*",
"./js/**/*",
"./images/**/*",
"./fonts/**/*",
"./**/*.php",
]
@keesiemeijer
keesiemeijer / setup-phpunit.sh
Last active December 8, 2023 11:02
Setup PHPUnit for use in the Local by Flywheel app
#!/usr/bin/env bash
# ===============================================================================
# Script to install PHPUnit in the Local by Flywheel Mac app
# These packages are installed
#
# PHPUnit, curl wget, rsync, git, subversion and composer.
#
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit.
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory.
@miya0001
miya0001 / wbosaka.md
Last active May 30, 2016 15:55
WordBench Osaka スマホアプリハンズオン

WordBench Osaka スマホアプリハンズオン

NodeJSをインストール

Windowsの人

https://nodejs.org/en/

Macの人

@gatespace
gatespace / gist:9966808
Last active June 7, 2017 11:02
WordPress で Bogo を使った多言語サイトでのカスタム投稿タイプ http://qiita.com/gatespace/items/75e70f5ae162c2962dcc
add_filter('bogo_localizable_post_types', 'my_localizable_post_types', 10, 1);
function my_localizable_post_types($localizable) {
$localizable[] = 'custom_post_type_name';
return $localizable;
}
@hissy
hissy / gist:5251873
Created March 27, 2013 05:20
#WordPress add_image_sizeで追加した画像サイズを投稿画面で選べるようにする
<?php
function additional_image_size_names_choose($sizes){
global $_wp_additional_image_sizes;
if ( $_wp_additional_image_sizes ) {
foreach ( $_wp_additional_image_sizes as $key => $value ) {
if ( !$sizes[$key] )
$sizes[$key] = $key;
}
}