Skip to content

Instantly share code, notes, and snippets.

@JFK
JFK / setup-event.py
Last active September 17, 2019 05:43
initial setup event script
import argparse
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from trello import TrelloClient
CARD_NAME = "カード名"
LABEL = "ラベル"
CHECKLIST_TITLE = "チェックリストタイトル"
CHECKLIST_ITEMS = "チェックリスト"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Playground で動作の確認をしながら試すとよいと思います
// まずは Hello world から
println("Hello, world")
print("print は改行が無い ")
println("こんにちは")
println("行:" + String(__LINE__))
println("列:" + String(__COLUMN__))
// ファイル名: __FILE__
// 関数やメソッド名: __FUNCTION__ 
// などのリテラル表現がある
@JFK
JFK / AdmobBannerExampleViewController.m
Created April 23, 2014 01:26
初めて Admob を試した時のメモ:Admob を self.tableView.tableFooterView にセットしてみた ref: http://qiita.com/kiyotaman/items/cc75a57ac51e77f30395
#import "GADBannerView.h"
@interface AdmobBannerExampleViewController : UIViewController
{
// インスタンスのバリューとして宣言
GADBannerView *bannerView_;
}
...
@JFK
JFK / gist:4617714
Last active December 11, 2015 14:58
logger sample code
#!/usr/bin/env python
import settings
import sys
import traceback
import logging
import smtplib
from email.MIMEText import MIMEText
from email.Header import Header
from email.Utils import formatdate
@JFK
JFK / gist:4591707
Last active September 16, 2019 21:10
Ngnix + Nginx-GridFS-Replicaset(mongodb) + nginx-image-filter +nginx-proxy-cache Sample Configuration
user www-data;
#worker_processes 4;
#worker_priority 0;
#worker_cpu_affinity 0001 0010 0100 1000;
#worker_rlimit_nofile 163840;
#worker_processes 8;
#worker_priority 0;
#worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;