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 glob | |
import cv2 | |
import numpy as np | |
import os | |
import tqdm | |
from PIL import Image, ImageChops | |
def effect_gamma(image): | |
gamma = 1.5 | |
gamma_cvt = np.zeros((256,1),dtype = 'uint8') |
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
// "dependencies": { | |
// "@google-cloud/pubsub": "^2.3.0", | |
// "firebase-admin": "^9.8.0", | |
// "firebase-functions": "^3.14.1" | |
// }, | |
import * as functions from "firebase-functions"; | |
import { PubSub } from '@google-cloud/pubsub'; |
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
// under construction ... | |
sealed trait BusinessDaySpec | |
case object WorkDay extends BusinessDaySpec | |
case object Holiday extends BusinessDaySpec | |
sealed trait MovieDaySpec | |
case object MovieDay extends MovieDaySpec |
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 <stdio.h> | |
#include <string> | |
#include <iostream> | |
#include <vector> | |
int main(){ | |
auto s = new std::vector<std::string>();s->push_back("udon");s->push_back("ramen");s->push_back("soba"); | |
auto t = s; s = NULL; | |
auto u = s; s = NULL; | |
std::cout << (*s)[0] << std::endl; |
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
class TreeControl[T] { | |
// これらのIFを使いたい | |
dataNodes: T[]; | |
def getLevel(node: T): Int = {} | |
} | |
class NestedTreeControl[T] extends TreeControl[T] {} | |
class FlatTreeControl[T] extends TreeControl[T] {} | |
trait TreeControlEnhancer[T] { |
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
{ | |
"network-config": { | |
"org1": { | |
"name": "peerOrg1", | |
"mspid": "Org1MSP", | |
"peer1": { | |
"requests": "grpc://127.0.0.1:7051", | |
"events": "grpc://127.0.0.1:7053", | |
"server-hostname": "peer0.org1.example.com", | |
"tls_cacerts": "<fabric-samples-PATH>/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" |
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
$ npm install -g vue-cli | |
$ vue init OnsenUI/vue-cordova-webpack my-project | |
$ cd my-project | |
$ npm install | |
$ cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="1234567890" --variable APP_NAME="your_app_name" | |
$ cordova platform add ios | |
$ cordova platform add android | |
$ npm run build | |
$ cordova prepare |
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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/01_prepare_authorized_keys": | |
mode: "000777" | |
content: | | |
ARRAY=( | |
https://github.com/akehoyayoi.keys # アクセスできるようにしたいアカウントを列挙しておく | |
) | |
echo 'ssh-rsa 元々あったauthorized_keyを書いておく' > authorized_keys | |
for item in ${ARRAY[@]}; do |
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
Do While True | |
Dim excelApp : Set excelApp = CreateObject("Excel.Application") | |
' Excelを非表示にする | |
excelApp.Visible = False | |
Dim targetFile : targetFile = "[ファイル名]" | |
Dim targetMacro : targetMacro = "[マクロ名]" | |
' Excelファイルを開く | |
excelApp.Workbooks.Open targetFile | |
' マクロの実行 |
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
language: objective-c | |
sudo: true | |
cache: | |
directories: | |
- $HOME/Library/Caches/Homebrew | |
before_install: | |
- brew update | |
- brew tap caskroom/cask | |
- brew install caskroom/cask/android-sdk caskroom/cask/android-ndk | |
- export ANDROID_HOME=/usr/local/share/android-sdk |
NewerOlder