Skip to content

Instantly share code, notes, and snippets.

View yuntan's full-sized avatar

Yuto Tokunaga yuntan

View GitHub Profile
@yuntan
yuntan / nicovideo.py
Created June 1, 2014 17:10
ニコ動からあらかじめ取ってきたJSONを解析して動画情報を表示するだけ
#!/usr/bin/env python3
"""nicovideo.py: parse json and show video info"""
__author__ = "Yuto Tokunaga"
import sys
import os
import glob
import json
@yuntan
yuntan / gist:48c2b86f6fe9431a6cf0
Last active August 29, 2015 14:03
raspiでGPIOを使ってみる 〜LEDでLoad Average〜

green

GPIO with raspi第一回(?)

ロードアベレージの高さに応じてLEDを点灯させる

  • ロードアベレージが低い[0,2)→緑
  • ちょっとしんどい[2,5)→黄
  • しんどい[5,∞)→赤
@yuntan
yuntan / Experimental Mathematics Report.ipynb
Last active March 11, 2020 06:38
実験数学1のレポート
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yuntan
yuntan / 140915-1.png
Last active August 16, 2019 17:07
My Prezto Paradox theme
140915-1.png
@yuntan
yuntan / Wave equation.ipynb
Last active March 11, 2020 10:21
波動方程式の解析解シミュレーション
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yuntan
yuntan / code1 output.txt
Created February 5, 2015 13:38
cgo: function scope variable and package scope variable
Driver Capability:
Driver: "uvcvideo"
Card: "UCAM-DLN130T series"
Bus: "usb-0000:00:14.0-2"
Capabilities: 84000001
using System;
using System.Linq;
using System.Collections.Generic;
public class Hello{
public static void Main(){
// Here your code !
var t = new {a = 0f, b = 0f};
Func<float, object> hoge = (float x) => new {a = x+1, b = x-1};
@yuntan
yuntan / README.md
Created April 3, 2015 13:09
go-qml os/exec.Cmd.Run SIGTRAP

environment

go 1.4 linux/amd64 Qt 5.4.1 Arch Linux

problem

Application is terminated due to core dump with signal trace/breakpoint trap, when the ls command is executed.

@yuntan
yuntan / randomwalk.ipynb
Last active March 11, 2020 10:44
random walk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yuntan
yuntan / README.md
Last active August 29, 2015 14:21
QFontMetrics test

Output

Qt 4.8.6 On Arch Linux:

"Ricty,10,-1,5,50,0,0,0,0,0" 
width of  'あ'  =  13 
width of  '南'  =  13

Qt 5.4.1 On Arch Linux:

"Ricty,10,-1,5,50,0,0,0,0,0"