#Tekwind TM75A
- 実売価格1万円台前半~半ばで購入可能な激安タブレット
- NTT-Xのナイトセールで、10980円の3000引きで売られている
- ARMではなくIntelのAtom Z2460が使われている
- 箱に書いてあることが正しければ製造元はECS
- デバイスマネージャからプロパティをみてみると製造元がなぜかGIGABYTEになっている
<?php | |
class MicroTemplateEngine { | |
public $data = array(); | |
private $tpl; | |
function __construct($f) { | |
$this->tpl = $f; | |
} |
# -*- coding: utf-8 -*- | |
import winscard | |
from ctypes import * | |
import time | |
import sys | |
user32 = windll.user32 | |
sc = winscard.SCard() | |
reader = sc.list_readers()[0] |
from bottle import request, Bottle, abort | |
app = Bottle() | |
@app.route('/websocket') | |
def handle_websocket(): | |
wsock = request.environ.get('wsgi.websocket') | |
if not wsock: | |
abort(400, 'Expected WebSocket request.') | |
while True: |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
var ws = new WebSocket("ws://localhost:8080/websocket"); | |
ws.onopen = function() { | |
ws.send("Hello, world"); | |
}; | |
ws.onmessage = function (evt) { | |
alert(evt.data); |
def prime(n): | |
if n is 0 or n is 1: | |
return False | |
else: | |
for x in range(2,n): | |
if n % x is 0: | |
return False | |
return True |
optusb: optusb.c | |
gcc -I /opt/local/include/libusb-legacy -L /opt/local/lib/libusb-legacy -lusb-legacy -Wall -o optusb optusb.c | |
clean: | |
rm -rf optusb *.o |
import rauth | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' | |
ACCESS_TOKEN_SECRET = '' | |
URL = 'https://api.twitter.com/1.1/statuses/update.json' | |
session = rauth.OAuth1Session( | |
CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET |
#!/bin/bash | |
osascript -e "set Volume output volume 100" | |
say -v Cellos shin chock do des ka ? | |
osascript -e "set Volume output volume 0" |