This file contains hidden or 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
| from datetime import datetime, timedelta | |
| srtFormat = '''{0} | |
| {1} --> {2} | |
| {3} | |
| ''' | |
| def srt(index, start, end, text): | |
| return srtFormat.format(index, start, end, text) |
This file contains hidden or 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
| #!/bin/bash | |
| echo "[Kafka Installer] install openjdk-8" | |
| sudo apt-get install openjdk-8-jdk | |
| echo "[Kafka Installer] java version printing test" | |
| java -version | |
| javac -version | |
| sudo useradd kafka -m | |
| sudo passwd kafka |
This file contains hidden or 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
| 04c558fd130141d7c148541b8cf90ece7942e69e135c2359db4a7149de6cdeba5d8a141b7e125b58c09a605874a7ba06336fdc6358f0463f86dba9e551726088d7;ironpark |
This file contains hidden or 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 requests | |
| import hashlib | |
| import struct | |
| def load_block_data(block_hash): | |
| r = requests.get('https://blockchain.info/ko/rawblock/' + block_hash) | |
| return r.json() | |
This file contains hidden or 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
| { | |
| cv::VideoCapture capture(0); | |
| //1280 * 720 | |
| capture.set(CV_CAP_PROP_FRAME_WIDTH, 1920); | |
| capture.set(CV_CAP_PROP_FRAME_HEIGHT, 1080); | |
| capture.set(CV_CAP_PROP_FOURCC, CV_FOURCC('M', 'P', 'E', 'G')); | |
| int ex = static_cast<int>(capture.get(CV_CAP_PROP_FOURCC)); | |
| char EXT[] = { (char)(ex & 0XFF) , (char)((ex & 0XFF00) >> 8),(char)((ex & 0XFF0000) >> 16),(char)((ex & 0XFF000000) >> 24), 0 }; |
This file contains hidden or 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
| typedef struct { | |
| int bit1 : 1; | |
| int bit2 : 1; | |
| int bit3 : 1; | |
| int bit4 : 1; | |
| int bit5 : 1; | |
| int bit6 : 1; | |
| int bit7 : 1; | |
| int bit8 : 1; | |
| } Bit; |