Skip to content
View download_book_list_button.js
setTimeout(function(){
var $button =
$('<div id="__download_button" style="' +
' position: fixed;' +
' top: 5px;' +
' right: 200px;' +
' border-radius: 5px;' +
' background: gray;' +
' padding: 8px;' +
' border-top: 1px white solid;' +
View gist:32675bf171f1c7425a00
todo
------
- v
- hoge
- hoge
- hoge
- hoge
- hoge
- hoge
View set_up_docker_machine.md
View scrape_shiftjis_page.go
package main
import (
"fmt"
"io"
"net/http"
gq "github.com/PuerkitoBio/goquery"
"golang.org/x/text/encoding/japanese"
"golang.org/x/text/transform"
View upload_ipa.sh
_usage() {
cat << _USAGE_
usage: upload_ipa <config_json> <version>
This program depends on the following commands
jq
ipa (shenzhen)
and needs config.json like this.
{
View resize_with_imagick.go
package main
import "github.com/gographics/imagick/imagick"
func main() {
imagick.Initialize()
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"
View delete_same_app_icon.sh
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 (__hasProp.call(parent, 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
Something went wrong with that request. Please try again.