| 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 λΈλ‘κ·Έ λ°±μ κΈ°λ₯μ΄ μμ λμ΄ λ°±μ ν μ μλ λΆλ€μ μν λ°±μ μ€ν¬λ¦½νΈ λ° μλνλ μ€λ‘μ μ΄μ λ°©λ²μ λλ€.
μ°μ tistory μ μ€ν¨μ [μ¬μ©μ€TickTalk(μ¬μ©μ μμ /μ λ‘λ) ver.1.0(μ¬μ©μ μμ /μ λ‘λ)] μΌλ‘ λ³κ²½νμκΈ° λ°λλλ€. λ³Έ μ€ν¬λ¦½νΈμ μ€λͺ μ μ΄ μ€ν¨μ κΈ°λ°μΌλ‘ μ μλμμ΅λλ€. λν νκ²½μ€μ - κΈ°λ³Έμ 보 - λΈλ‘κ·Έ μ 보 - μ£Όμμ€μ μμ μ£Όμλ°©μμ [μ«μ (http://notice.tistory.com/123)] λ‘ λ³κ²½νμκΈ° λ°λλλ€. μλνλ μ€λ₯Ό 미리 μ€μΉνμ ν μλνλ μ€ λΈλ‘κ·Έμ url λ° κΈ°ν μ€μ μ 미리 μ§ννμ μΌ ν©λλ€. λ³Έ μ¬νμ 미리 μννμ§ μμκ²½μ° μ€ν¬λ¦½νΈκ° λμνμ§ μμμ μμ΅λλ€.
μ§ννκΈ° μ λͺ¨λ λΆλΆμ λν΄μ μ½μ΄λ³΄μ ν μ§ννμκΈ° λ°λλλ€. μ¬μ μμ μ΄ νμν μ μμ΅λλ€.
| 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 |
| 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 + " λͺ μ λλ€."); |
| #!/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" |
| <table> | |
| <thead> | |
| <tr> | |
| <td colspan="3"> | |
| <strong class="x-value">2016-12-01</strong> | |
| </td> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> |
| #-*- 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)): |
| 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) |
| 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 |