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
var script = document.createElement('script'); | |
script.onload = function() { | |
jQuery.noConflict(); | |
if (callback) { | |
callback(jQuery); | |
} | |
}; | |
script.src = "https://code.jquery.com/jquery-2.1.1.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); |
우선 tistory 의 스킨을 [사용중TickTalk(사용자 수정/업로드) ver.1.0(사용자 수정/업로드)] 으로 변경하시기 바랍니다. 본 스크립트와 설명은 이 스킨을 기반으로 제작되었습니다. 또한 환경설정 - 기본정보 - 블로그 정보 - 주소설정 에서 주소방식을 [숫자 (http://notice.tistory.com/123)] 로 변경하시기 바랍니다. 워드프레스를 미리 설치하신 후 워드프레스 블로그의 url 및 기타 설정을 미리 진행하셔야 합니다. 본 사항을 미리 수행하지 않을경우 스크립트가 동작하지 않을수 있습니다.
진행하기 전 모든 부분에 대해서 읽어보신 후 진행하시기 바랍니다. 사전작업이 필요할 수 있습니다.
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
command = "ffmpeg -f avfoundation -i \":0\" -f rawvideo -pix_fmt bgr24 -s 1280x720 -i - -deinterlace -vb 2000k -vcodec libx264 -preset ultrafast -g 60 -threads 4 -acodec libmp3lame -ab 128k -ar 22050 -bufsize 512k -f flv \"rtmp://1.1234567.fme.ustream.tv/ustreamVideo/id/streamkey\" | |
videopipe = subprocess.Popen(pipecommand, shell=True, stdin=subprocess.PIPE) | |
videopipe.stdin.write(frame.tostring()) # OpenCV Frame Data |
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
var a=$("#commentContents>table"); | |
var list = []; | |
var text = ''; | |
$.each(a, function(i,v) { | |
if (v.innerText.indexOf("[신청]") >= 0) { | |
list.push($(v).find("a[class='sideview']")[0].innerText); | |
} | |
}); | |
console.log("총 " + list.length + " 명 입니다."); |
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
#!/bin/sh | |
# Find SMI file recursively script by Taylor Starfield | |
FindRoot=/top/directory/to/convert | |
find $FindRoot -name '[^.]*.smi' | while read line; do | |
if [ -f "${line%.smi}.srt" ]; then | |
continue | |
fi | |
python convert.py "$line" |
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
<table> | |
<thead> | |
<tr> | |
<td colspan="3"> | |
<strong class="x-value">2016-12-01</strong> | |
</td> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
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 -*- | |
import os | |
import subprocess | |
ROOT_DIR = '/home/user/data/' | |
REMOTE_ROOT_DIR = '/Documents/data/' | |
for dir in os.listdir(ROOT_DIR): | |
if not os.path.isdir(os.path.join(ROOT_DIR, dir)): |
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 subprocess | |
import time | |
import fcntl, os | |
#p = subprocess.Popen(['mplayer', '-slave', '-quiet', 'motor_start.wav'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
#while(True): | |
# speedstr = raw_input('rpm: ') | |
# print '\r\n' | |
# speednum = int(speedstr) |
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 obd | |
import json | |
import time | |
import os | |
import sys | |
from obd import OBDCommand | |
from obd.utils import unhex | |
def rpm(_hex): | |
v = unhex(_hex) # helper function to convert hex to int |
NewerOlder