Skip to content

Instantly share code, notes, and snippets.

View civic's full-sized avatar

Takashi Sasaki civic

View GitHub Profile
@civic
civic / cancel-policy.md
Created August 21, 2013 01:42
長岡IT開発者勉強会の懇親会キャンセルポリシー

長岡IT開発者勉強会の懇親会キャンセルポリシー

懇親会をキャンセルした場合のキャンセル料金について。開催3日以内のキャンセルの場合はキャンセル料が発生します。

キャンセル料金

懇親会実施日を含む3日前からのキャンセルの場合、参加料金をキャンセル料金とさせて頂きます。
(例:10日開催の場合8日のキャンセルからキャンセル料金がかかります)

ご連絡なく不参加になった場合はキャンセル料金を頂きます。

@civic
civic / gist:5394787
Created April 16, 2013 10:00
例えば非同期処理のcallback関数などにあえて関数名をつけるのはどうだろう?
//例えば非同期処理のcallback関数などにあえて関数名をつけるのはどうだろう?
someAjaxFunction("parmaeter",
function 販売価格の取得に成功した時(calculatedSalesPrice){
console.log(calculatedSalesPrice);
},
function なんかエラー(e){
console.log(e);
}
);
//変更前
@civic
civic / dynamic.py
Last active December 15, 2015 07:19
class Dynamic:
def __setattr__(self, name, value):
self.__dict__[name] = value
def __getattr__(self, name):
return self.__dict__[name]
d = Dynamic()
d.hoge = 'bar'
d.neko = 'nyan'
@civic
civic / Main.js
Last active December 14, 2015 13:59
var person = require("./Person")
var p = new person.Person('John');
p.show();
console.log("direct access: " + p.name);

Fix HootSuiteでRTがリストにでる規則

2.7.26から公式RTをリスト上に表示する機能を不完全ながら実装しました。不完全ながらというのは、Twitter APIを使ってないため、取りこぼしが多数あるからです。

基本ルール

  • ホーム のストリームが必要
  • 上記ストリームにはリツイートが表示される
  • 表示されたリツイートがリストのストリームのユーザによるRTなのかチェック
  • リストのユーザからなら、そのリストに複製する

電子書籍リーダーとして使えそうなタブレット端末

Retina iPad

652g 9.7インチ 2048x1536 264ppi 16GB 42,800円

iPad mini

308g 7.9インチ 1024x768 163ppi 16GB 28,800円

Nexus7

340g 7 インチ 1280x800 216ppi 16GB 19,800円

@civic
civic / Untitled 1.py
Created September 19, 2012 00:05
How does it work? func1 and func2
def main():
x1=1
x2=1
def func1():
y1=x1+10
print 'func1', x1,y1
def func2():
y2=x2+10

てすと

@civic
civic / gist:3111171
Created July 14, 2012 13:03
Please use New SNS Selector. for FixHootSuite users.

Please use New SNS Selector. for FixHootSuite users.

FixHootSuite delete the auto-account-select feature.

Why?

Because HootSuite has the more useful feature, that is "Pin"