Skip to content
View scrape_shiftjis_page.go
package main
import (
gq ""
_usage() {
cat << _USAGE_
usage: upload_ipa <config_json> <version>
This program depends on the following commands
ipa (shenzhen)
and needs config.json like this.
View resize_with_imagick.go
package main
import ""
func main() {
defer imagick.Terminate()
mw := imagick.NewMagickWand()
defer mw.Destroy()
View XMPPFramework.podspec.json
"name": "XMPPFramework",
"version": "3.6.4",
"platforms": {
"ios": "5.0",
"osx": "10.7"
"license": {
"type": "BSD",
"file": "copying.txt"
cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support
./lsregister -kill -r -domain system -domain local -domain user
# 上記の2つのコマンドを叩いたら Finderを再起動する
View coffee.js
var fuga, hoge,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) {
for (var key in parent) {
if (, key)) child[key] = parent[key];
function ctor() {
View htaccess_faile_sample
RewriteEngine on
# ディレクトリまたはファイルが存在する場合は、それを直接に使う
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# それ以外は index.php に転送する
RewriteRule ^(.*) index.php
View fileApiSample.js
<!doctype html>
以下でFileを選択するとbody に imgタグがappendされる
<input type="file" id="files" />
View drawImageOnCanvas.js
* canvasに引数で指定されたURLによって画像を描画する
function drawImageOnCanvas( data ){
var cvs = document.getElementById('my_canvas');
if( !cvs || !cvs.getContext ) return false;
var context = cvs.getContext('2d');
Something went wrong with that request. Please try again.