This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::HomeDir; | |
use Path::Class qw(dir); | |
use DBI; | |
my $home = File::HomeDir->my_home; |
This file contains 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
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
#include <opencv/ml.h> | |
void doMosaic(IplImage* in, int x, int y, | |
int width, int height, int size); | |
int main (int argc, char **argv) | |
{ | |
int i, c; |
This file contains 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
-- setting | |
local mstr_cid = 'client_id for microsoft translator text api' | |
local mstr_secret = 'client_secret for microsoft translator text api' | |
local line_id = 'Channel ID for LINE BOT API' | |
local line_secret = 'Channel Secret for LINE BOT API' | |
local line_mid = 'MID for LINE BOT API' | |
-- function: mstr | |
function mstr(text, cid, secret) | |
local lom = require 'lxp.lom' |
This file contains 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
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#define DEBUG | |
#define PIN_LED 4 | |
#define SSID "{your_ssid}" | |
#define PASSWORD "{your_password}" | |
#define IFTTT_HOST "maker.ifttt.com" | |
#define IFTTT_PATH "/trigger/{your_event}/with/key/{your_key}" |
This file contains 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
#include <codecvt> | |
#include <string> | |
#include <cassert> | |
#include <locale> | |
#include <esp_system.h> | |
#include <rom/rtc.h> | |
#include <EEPROM.h> | |
#include <WiFi.h> |
This file contains 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
# -*- coding: utf-8 -*- | |
from datetime import datetime, timedelta, timezone | |
import boto3 | |
from boto3.session import Session | |
from boto3.dynamodb.conditions import Key | |
TIMEOUT_SEC = 180 | |
def lambda_handler(event, context): |
This file contains 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 json | |
import os | |
import urllib.request | |
import logging | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) | |
def lambda_handler(event, context): |
This file contains 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
idea = idea0 | |
while idea is not None: | |
idea = learn(measure(build(idea))) |
This file contains 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 copy | |
from tqdm import tqdm | |
# ODリストを取得する | |
def getODs(list): | |
results = [] | |
# 並び順の候補を取得する | |
for o in removeDuplicates(getOrders(list)): | |
# 経路を作成 |
This file contains 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
''' | |
"Numbers Link"パズルを制約充足問題(CSP)ソルバーSugarで解く・作る | |
''' | |
import argparse | |
import os, sys | |
import random | |
import time | |
import re | |
import subprocess |