- source
- Vueはvue.jsのコアとなるコンストラクタ
- インスタンスが作られたときにデータバインディングが開始される
- オプションを取ることも出来て、DOMやデータやメソッドについて定義出来る
<?php | |
# ID1でログインする | |
include __DIR__.'/wp-load.php'; | |
wp_set_auth_cookie(1); | |
header( 'Location: '.admin_url() ); | |
exit; |
#!/bin/bash | |
#shopt -s expand_aliases | |
#source ~/.bash_profile | |
## 日本語化する? | |
echo "日本語化する? [Y/N]" | |
read ANSWER | |
case $ANSWER in | |
"" | "Y" | "y" | "yes" | "Yes" | "YES" ) |
{ | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "advanced-custom-fields/advanced-custom-fields-pro", | |
"version": "5.0", | |
"type": "wordpress-plugin", | |
"dist": { | |
"type": "zip", |
module A2 where | |
------------------------------------------------------ | |
-- 述語論理 | |
-- まずは命題論理から | |
-- 真(⊤),偽(⊥)の定義が必要 | |
-- ⊥ は証明がひとつもないような命題だから, 空集合によって表す | |
-- 帰納的定義によって次のように表現することができる |
#!/bin/env python | |
import numpy as np | |
import scipy.misc | |
from scipy.fftpack import dct, idct | |
import sys | |
H = 128 | |
W = 128 | |
lenna = scipy.misc.imresize(scipy.misc.lena(), (H, W)).astype(float) |
# -*- encoding:utf-8 -*- | |
# | |
# CentOSをセキュアにセットアップするFabricスクリプト | |
# | |
# 前提条件 : Fabricインストール済/SSHの公開鍵作成済 | |
# 実行方法 : fab deploy | |
# 検証環境 : CentOS6.6 (さくらのVPS 標準OSインストール) | |
##################################################################### | |
from fabric.api import env, run, sudo, put |
<?php | |
/* | |
Plugin Name: Really Simple CSV Importer Action add-on | |
Description: Run the additional action after importing the post data | |
Author: Takuro Hishikawa | |
Version: 0.1 | |
*/ | |
class rscsvimporter_action { | |
// singleton instance |
#!/usr/bin/env bash | |
set -ex; | |
echo 'DROP DATABASE IF EXISTS wordpress_test;' | mysql -u root | |
rm -fr /tmp/wordpress | |
rm -fr /tmp/wordpress-tests-lib | |
bash $(wp --info --format=json | jq -r '.wp_cli_dir_path')/templates/install-wp-tests.sh wordpress_test root '' localhost latest; |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |