- ハンバーグ
- 焼きそば
- たこ焼き
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 | |
/* | |
Plugin Name: Nginx Proxy Cache Purge | |
Plugin URI: http://wpselect.com/ | |
Description: Purges the nginx proxy cache when you publish or update a post or page. | |
Version: 0.9.6 | |
Author: John Levandowski | |
Author URI: http://wpselect.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
<?php | |
class Util{ | |
// アンダースコア「_」区切りでCamelCaseに変換する | |
public static function toCamelCase($string){ | |
$camel_case = ""; | |
$string_arr = explode("_", $string); | |
foreach($string_arr as $name){ | |
if(empty($name)){ continue; } |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import csv | |
csvfile = open('hoge.csv', 'r') | |
reader = csv.reader(csvfile) | |
for i, row in enumerate(reader): | |
if not i: | |
continue |
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
javascript:(function(){ var heads = document.getElementsByTagName('head'); if(! heads.length){alert('QRエラー\nheadタグが見つかりません。');return} var s = document.createElement('script'); s.type = 'text/javascript'; s.charset = 'utf-8'; s.src = 'https://zafiel.wingall.com/js/qrgenerator.js'; heads[0].appendChild(s); })(); |
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
/* =========================== | |
Author : wg.koro | |
Version : 1.1 | |
URL : https://gist.github.com/wgkoro/7973374 | |
Blog : https://zafiel.wingall.com/archives/8396 | |
QRコード生成ブックマークレット。 | |
見ているページのURL、あるいは選択した文字列のQRコードを生成する。 | |
ブックマークレットにして実行するとハッピー。 | |
============================== */ |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
u""" | |
Author : wg.koro | |
Update : 2013/10/29 | |
ページスクレイピング補助クラス。 | |
def scrape(soup_obj) をオーバーライドして使うと幸せになれる。 | |
Args: |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
""" | |
Author : wg_koro | |
Update : 2013/7/10 | |
Web page checker | |
""" | |
import urllib |
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要素にそのサイズを適用する | |
* | |
* 使い方: | |
* | |
* 例) 幅150px, 高さ200px以内で画像を表示する | |
* var img = document.createElement('img'); | |
* img.src = 'http://hoge.com/img/fuga.jpg'; | |
* imgResize.resize(img, 150, 200); |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import time | |
import os | |
from selenium import webdriver | |
class AndroidTest: | |
def __init__(self): | |
self._browser = webdriver.Remote(command_executor='http://localhost:8080/wd/hub', desired_capabilities=webdriver.DesiredCapabilities.ANDROID) | |
self._current = os.path.realpath(os.path.dirname(__file__)) |