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
# app/views/root.py | |
# -*- coding: utf-8 -*- | |
# Check Return data | |
# Facebook return data (https://developers.facebook.com/docs/reference/api/user/) | |
# Twitter Verify Credential return data (https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials) | |
from flask import ( | |
Blueprint, | |
redirect, |
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
# -*- coding: utf8 -*- | |
import urllib, httplib, BeautifulSoup | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
realurl = 'http://service.epost.go.kr/trace.RetrieveRegiPrclDeliv.postal?sid1=' | |
posturl = 'trace.epost.go.kr' |
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
for DIR in */ ; do | |
echo "[ALERT] DIRECTORY - "$DIR; | |
cd $DIR; | |
for file in *.M2T *.m2t; | |
do | |
name=`echo $file | cut -d'.' -f1`; | |
if [ ! "$name" == "*" ]; | |
then | |
echo "[ALERT] File Name - "$name; | |
if [ ! -f $name.mov ]; |
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
for DIR in */ ; do | |
echo "[ALERT] DIRECTORY - "$DIR; | |
cd $DIR; | |
for file in *.M2T *.m2t; | |
do | |
name=`echo $file | cut -d'.' -f1`; | |
if [ ! "$name" == "*" ]; | |
then | |
echo "[ALERT] File Name - "$name; | |
if [ ! -f $name.mkv ]; |
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
public partial class MainWindow : Window | |
{ | |
private KinectSensor kinectSensor = null; | |
private CoordinateMapper coordinateMapper = null; | |
private MultiSourceFrameReader multiFrameSourceReader = null; | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
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
/************************************************* | |
* Public Constants | |
*************************************************/ | |
#define NOTE_B0 31 | |
#define NOTE_C1 33 | |
#define NOTE_CS1 35 | |
#define NOTE_D1 37 | |
#define NOTE_DS1 39 | |
#define NOTE_E1 41 |
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
# -*- coding: utf-8 -*- | |
import wifi | |
def Search(): | |
wifilist = [] | |
cells = wifi.Cell.all('wlan0') |
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
# /usr/local/lib/python2.7/dist-packages/wifi/scheme.py | |
import re | |
import itertools | |
import wifi.subprocess_compat as subprocess | |
from pbkdf2 import PBKDF2 | |
from wifi.utils import ensure_file_exists | |
from wifi.exceptions import ConnectionError |
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
private void TouchProcess() | |
{ | |
movedx = 0; // Set Value to move of X | |
modedy = 0; // Set Value to move of Y | |
if (TouchIsInitialized == false) | |
{ | |
contacts[0].PointerInfo.PointerFlags = PointerFlags.INRANGE | PointerFlags.UPDATE; | |
contacts[0] = MakePointerTouchInfo(relativex, relativey, 2, 1); | |
bool s = InjectTouch(contacts); |
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 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 |
OlderNewer