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 MiniEditor extends HTMLElement { | |
constructor(){ | |
super(); | |
this._value = ''; | |
var shadow = this.attachShadow({ mode:'open'}); | |
var wrapper = document.createElement('div'); | |
var placeholder = document.createElement('div'); |
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
const {createCanvas, loadImage} = require('canvas'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const name = process.argv[2]; | |
const no = process.argv[3] || 0; | |
const request = require('got'); | |
if( !name ) { |
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
const request = require('request-promise-native'); | |
const {createCanvas, loadImage} = require('canvas'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const wr_id = process.argv[2]; | |
if( !wr_id ) { | |
console.error('USAGE : node index [wr_id]'); | |
process.exit(1); |
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
def solution(strs, t) | |
cache = {} | |
que = [] | |
que.push([t, 0]) | |
depth = 0 | |
strs.uniq! | |
return 1 if strs.include?(t) | |
cur = 0 | |
while que.size > 0 and cur < que.size do | |
tar, dep = que[cur] |
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 <Keyboard.h> | |
int vPins[] = {A2, A3, A4, A5, 14}; | |
int hPins[] = {11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, A0, 13, A1}; | |
unsigned char keys[5][15] = { | |
{KEY_ESC, '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '=', '0', KEY_BACKSPACE, '\0' }, | |
{KEY_TAB, 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', '[', ']', 'p', KEY_HOME, '\\' }, | |
{KEY_LEFT_CTRL, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', '\'', KEY_RETURN, ';', KEY_END}, | |
{KEY_LEFT_SHIFT, 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', KEY_RIGHT_SHIFT, KEY_UP_ARROW, '/', KEY_DELETE}, |
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
byte pLed = 2; | |
byte segPins[] = {5, 7, 8, 10, A0, 13, 12, 11}; | |
byte digitPins[] = {6, 9}; | |
byte sensorPin = A1; | |
byte relayPin = 4; | |
byte cnt = 0; | |
bool isOn = false; |
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 <LiquidCrystal.h> | |
#include "FPS_GT511C3.h" | |
#include<SoftwareSerial.h> | |
// Mode definitions | |
#define MODE_IDLE 0 | |
#define MODE_WELCOME 1 | |
#define MODE_ENROLL 2 | |
#define MODE_DEROLL 3 |