This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import sys | |
argvs = sys.argv | |
members = argvs[1:] | |
random.shuffle(members) | |
members.append("teacher") | |
print zip(members[::2], members[1::2]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
font-family: 'Courier'; | |
font-size: 9pt; | |
background-color: black; | |
color: #e9e9e9; | |
word-wrap: break-word; | |
margin: 0; | |
padding: 3px 4px 10px 4px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"commands": { | |
"_execute_browser_action": { | |
"suggested_key": { | |
"default": "Ctrl+Shift+F", | |
"mac": "MacCtrl+Shift+F" | |
} | |
} | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Core.rectangle(mat, new Point(mat.size().width/2, 0), new Point(mat.size().width, mat.size().height), new Scalar(0,0,0,255), -1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
font-family: 'Courier'; | |
font-size: 9pt; | |
background-color: #ffcdc8; | |
color: #64635c; | |
word-wrap: break-word; | |
margin: 0; | |
padding: 3px 4px 10px 4px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-view: | |
nickname-format: '(%n) ' | |
scroller-highlight-color: '#f0f' | |
input-text: | |
font-family: 'Hobo Std' | |
font-size: 13.0 | |
background-color: '#fff9f9' | |
color: '#343434' | |
selected: | |
background-color: '#ccc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private double[] GAMMA_LEVEL_RGB = new double[3]; | |
//こんなかんじの宣言しといて、適当に補正したい値を入れる | |
public synchronized Mat channelsGamma(Mat inputPicture) { | |
Mat channel = new Mat(); | |
ArrayList<Mat> channels = new ArrayList<Mat>(); | |
inputPicture.copyTo(channel); | |
Core.split(channel, channels); | |
for (int i = 0; i < 3; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
array = range(1, 76) | |
random.shuffle(array) | |
for x in array: | |
raw_input("") | |
print x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedList; | |
import java.util.Queue; | |
public class Egalitarianism { | |
public int maxDifference(String[] isFriend, int d) { | |
int mmax = 0; | |
for (int s = 0; s < isFriend.length; s++) { | |
Queue<Integer> queue = new LinkedList<Integer>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TrafficCongestionDivTwo { | |
public long theMinCars(int treeHeight) { | |
if(treeHeight==1){ | |
return 1; | |
} | |
long a1 = 1; | |
long a2 = 1; | |