Skip to content

Instantly share code, notes, and snippets.

View civic's full-sized avatar

Takashi Sasaki civic

View GitHub Profile
package java8;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.Supplier;
@civic
civic / in1.txt
Last active August 29, 2015 14:22
oneperson.py
4
2
10 21
3
0 9 9
4
81 67 83 86
3
11 22 30
var g=0;var c=$('<img id="cursor" src="http://goo.gl/UFrcIO" style="position: absolute;">').appendTo("body");var doclick=function(){var b=$(".thechosenone");var o=b.offset();c.animate({left:o.left+b.width()/2, top: o.top+b.height()/2}, function(){b.click(); if (g++<50){doclick()}else{$(".missclick").click()}})};doclick();
1 2015-09-20 13:29:26 27.7
2 2015-09-20 13:30:26 27.4
3 2015-09-20 13:31:26 27.3
4 2015-09-20 13:32:26 27.1
5 2015-09-20 13:33:26 27.0
6 2015-09-20 13:34:26 26.8
7 2015-09-20 13:35:26 26.7
8 2015-09-20 13:36:26 26.7
9 2015-09-20 13:37:26 26.6
10 2015-09-20 13:38:26 26.6
#!/bin/sh
#
# spawn-fcgi Start and stop FastCGI processes
#
# chkconfig: - 80 20
# description: Spawn FastCGI scripts to be used by web servers
# Source function library.
. /etc/rc.d/init.d/functions
@civic
civic / MainActivity.java
Created January 22, 2012 13:14
Extends BaseExpandableListAdapter
package test.civic;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import test.civic.AKB48.Member;
import android.app.Activity;
import android.os.Bundle;
@civic
civic / gist:3111073
Created July 14, 2012 12:44
FixHootSuiteでのアカウント自動選択が機能しなくなった方へ

FixHootSuiteでのアカウント自動選択が機能しなくなった方へ

Fix HootSuiteの自動アカウント選択機能は廃止しました。

なぜ

HootSuite本体に、同等以上なアカウント選択機能であるPinが実装されたため、不要になったからです。

@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"

てすと

@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