| #!/usr/bin/env python3 | |
| """ | |
| VE-PG4 RoIP Gateway 1 (239.255.255.1:22510, G.711u) ๋ก 1์ด๊ฐ 1kHz ๋นํ ์ก์ . | |
| """ | |
| import socket, struct, time, math, sys | |
| MCAST = '239.255.255.1' | |
| PORT = 22510 | |
| SSRC = 0xCAFEBABE | |
| TTL = 32 # ๋ผ์ฐํฐ ํ๋ ํ ๋๊ธฐ ์ํด |
| 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) |