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
#!python2 | |
#coding:utf-8 | |
import sys | |
from ctypes import * | |
if __name__ == '__main__': | |
lib = windll.tssns2 | |
ID = "YourID" | |
PASS = "YourPassword" |
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
#!/usr/local/bin/python | |
#coding:utf-8 | |
import sys | |
import base64 | |
def s2b64_encode(file): | |
#bytes -> base64 | |
#in filename(string) |
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 ketai.sensors.*; | |
KetaiSensor sensor; | |
float x, y, z, r; | |
float vx, vy, vz; | |
void setup(){ | |
sensor = new KetaiSensor(this); | |
sensor.start(); | |
orientation(LANDSCAPE); | |
x = width/2; |
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
@route('/') | |
def index(): | |
# Logic | |
return template("index") | |
@route('/', method="POST") | |
def do_process(): | |
# Logic | |
value = request.forms.get('foo') | |
return template("result", value) |
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
/** | |
* jQueryの読み込みコードはこちらを使っています。 | |
* http://qiita.com/otchy/items/5c4f2e1b2a93ac200f1c | |
**/ | |
javascript:(function(f,s){s=document.createElement("script");s.src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js";s.onload=function(){f(jQuery.noConflict(true))};document.body.appendChild(s)})(function($){ $("*").css("font-family", "sans-serif"); }) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>topic 152717 answer</title> | |
<style> | |
ul{ | |
list-style: none; | |
} | |
ul li a{ |
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 express = require('express'); | |
var app = express(); | |
var exec = require('child_process').exec; | |
var addr = ""; | |
app.get('/', function (req, res) { | |
res.send("hello, world"); | |
}); | |
app.get('/ring', function (req, res) { |
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
<?php | |
header('Content-Type: text/plain'); | |
echo <<<EOT | |
この記事は某某某某某某某某某 Advent Calendar 2015の15日目の記事です。遅刻すみません。 | |
こんなんなにを書けっていうんだ…… | |
Twitterのりくサー(?)好きっつーかTwitterの絡みの7割ぐらいになってるから身内ネタ最高って感じです。 | |
そういえば初めはsoft_hat界隈と認識してたんだよね。実は。(初めて見たのがTes.Soなので) |
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
<?php | |
$uploaddir = __DIR__."/"; | |
$uploadfile = $uploaddir . basename($_FILES['file']['name']); | |
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) { | |
// バージョン依存問題の解消 | |
if(function_exists("http_response_code")){ | |
http_response_code(200); | |
}else{ | |
header('HTTP', true, 200); | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>underscore.js sample</title> | |
</head> | |
<body> | |
<ul id="list"> | |
OlderNewer