I hereby claim:
- I am naoyashiga on github.
- I am naoyashiga (https://keybase.io/naoyashiga) on keybase.
- I have a public key ASDjxbw6PyprZLN0XslhGf9nGg1EhYlgkluXrDozU24AYgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| name: "Diff Display and Update Cache" | |
| description: "Compare current top5 results with previous cache, display new additions, and update the cache file." | |
| inputs: | |
| currentResults: | |
| description: "The JSON string of current top5 results from malware-check action." | |
| required: true | |
| orgName: | |
| description: "The GitHub organization name." | |
| required: true |
| import React, {useState, useEffect} from "react"; | |
| export const ColorCodes = () => { | |
| const [colors, setColors] = useState([]); | |
| const [correctColor, setCorrectColor] = useState(""); | |
| const [isCorrect, setIsCorrect] = useState(false); | |
| const [isShowResult, setIsShowResult] = useState(false); |
| """ | |
| 雑です。日本語として成立していないものも出力されます。 | |
| 5600個くらい出ます。 | |
| """ | |
| excludes = 'ぁぃぅぇぉゔゕゖゐゑゎ' | |
| hiragana = [chr(i) for i in range(ord("ぁ"), ord("ゖ")+1) if chr(i) not in excludes] | |
| print("".join(hiragana)) | |
| count = 1 | |
| for first in hiragana: |
| # 1. デスクトップフォルダに移動 | |
| cd ~/Desktop/ | |
| # 2. ファイル生成コマンドを実行 | |
| for i in {1..200}; do echo "yo" > hack$i.html; done | |
| # 3. 一括ファイル削除 | |
| rm hack*.html |
| #探す対象リスト:my_arrayはnumpy | |
| #例:上位3件 | |
| K = 3 | |
| # ソートはされていない上位k件のインデックス | |
| unsorted_max_indices = np.argpartition(-my_array, K)[:K] | |
| # 上位k件の値 | |
| y = my_array[unsorted_max_indices] |
| # -*- coding: utf-8 -*- | |
| # Inspired | |
| # [TensorFlow-Examples/autoencoder.py at master · aymericdamien/TensorFlow-Examples](https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/autoencoder.py) | |
| import tensorflow as tf | |
| import numpy as np | |
| from tensorflow.examples.tutorials.mnist import input_data | |
| mnist = input_data.read_data_sets("MNIST_data", one_hot=True) |
| import cv2 | |
| from os import path | |
| import numpy as np | |
| from matplotlib import pyplot as plt | |
| %matplotlib inline | |
| cascades_dir = path.normpath(path.join(cv2.__file__, '..', '..', '..', '..', 'share', 'OpenCV', 'haarcascades')) | |
| cascade_f = cv2.CascadeClassifier(path.join(cascades_dir, 'haarcascade_frontalface_alt2.xml')) | |
| def faceDetect(filePath): |
| const request = require('request'); | |
| const PAGE_ACCESS_TOKEN = ""; | |
| var options = { | |
| hostname: "graph.facebook.com", | |
| path: "/v2.6/me/messages?access_token=" + PAGE_ACCESS_TOKEN, | |
| method: 'POST', | |
| headers: { | |
| 'Content-Type': 'application/json' |
| require "ikku" | |
| reviewer = Ikku::Reviewer.new | |
| sourceTextFileName = '../data/wiki.txt' | |
| outputTextFileName = 'math.txt' | |
| outputTextFile = File.open(outputTextFileName,'w') | |
| begin | |
| File.open(sourceTextFileName) do |file| | |
| file.each_line do |line| |