curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=***
{"success":true}
function<int(int)> g(function<int(int)> f){ | |
cout << " exec g !\n"; | |
return [f](int x) -> int { | |
cout<< " exec g return lambda! "<< x << endl; | |
return f(x + 1); | |
}; | |
} | |
void e(function<int(int)> F){ | |
cout<< " exec e !\n"; |
- Q0 - | |
(S => . E Fin , Fin) | |
(E => . T Eq , Fin) | |
- Q1 - | |
(S => E . Fin , Fin) | |
- Q2 - |
function access(obj, path){ | |
path = path || ''; | |
obj = obj || {}; | |
var keys = path.split('.'); | |
var value = obj; | |
for (var i = 0; i < keys.length; i ++) { | |
// List | |
if(keys[i].match(/^.+\[\d+\]$/)){ | |
name = keys[i].split("[")[0]; |
{ | |
"entry": $input.json('$.entry') | |
} |
# -*- coding: utf-8 -*- | |
#星のデータの読み込み | |
import csv | |
def read_constellation(filename): | |
with open(filename, 'r') as f: | |
reader = csv.reader(f) | |
result = [] | |
for row in reader: | |
number = int(row[0]) |
# -*- coding: utf-8 -*- | |
import cv2 | |
import random | |
import numpy as np | |
from make_star_image import make_star_image | |
from PIL import Image | |
conda create -n opencv numpy scipy scikit-learn matplotlib python=3 | |
source activate opencv | |
conda install -c https://conda.binstar.org/menpo opencv3 |
/* | |
よくあるエラー例 | |
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 | |
原因例: | |
hoge[i][j] -> 添え時逆 | |
hoge[j].length -> 添え時逆 | |
*/ | |
int[][] hoge = { | |
{1,2,3,4,5}, | |
{2,3,4,5}, |
# -*- coding: utf-8 -*- | |
import numpy as np | |
import random | |
import cv2 | |
from constellation import read_constellation | |
from make_star_image import make_star_image | |
from scan_stars import get_resized_size | |
from scan_stars import count_stars |