Skip to content

Instantly share code, notes, and snippets.

jitomesky

  • Japan
  • 日本
Block or report user

Report or block jitomesky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View debian_i386.txt
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-486 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.54-2
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
[ 0.000000] BIOS-e820: 000000001fff0000 - 0000000020000000 (ACPI data)
[ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
@jitomesky
jitomesky / client.rb
Created Apr 20, 2014
C言語とRubyでsocket通信
View client.rb
# -*- coding: utf-8 -*-
require 'socket'
socket = Socket.unix('./server_socket')
socket.write('A')
p socket.getc
@jitomesky
jitomesky / gist:11147829
Created Apr 21, 2014
Zaurus_SL-C3200_bootlog
View gist:11147829
NAND LOADER ... in NAND
built on Jun 26 2007 at 20:03:06
(0) BOOT: Linux kernel
func = 00000100
**** LoadImage ****
@jitomesky
jitomesky / README.md
Last active Aug 29, 2015
RasPi モノクロ動画再生
View README.md

Raspberry Piに接続したノキアのモノクログラフィック液晶で動画を再生するプログラムです。

大阪旅行に浮かれ、共立電子で買ったSparkfunのLCD-10168を使いました。

動画の読み込み、リサイズ、二値化にはOpenCVを使っています。

基本的な処理の流れは

  1. 動画を読み込む
  2. グレイスケールに変換
@jitomesky
jitomesky / file_sync.ver1.c
Created May 15, 2014
高校生の時に作ったrsyncもどきのプログラム
View file_sync.ver1.c
/*
* file_sync.c
*
* Created on: 2010/04/25
* Author: NishinagaToshifumi
*/
//#define WIN32
#include <stdio.h>
@jitomesky
jitomesky / mine.c
Created May 15, 2014
高校生の時に作ったCUIマインスイーパープログラム
View mine.c
/* マインスイーパー もどき */
#include<stdio.h>
#include<stdlib.h>
void in_bom(int **, int , int, int); // ボムを入れる関数(配列データ、x軸、y軸、ボムの数)
void in_num(int **, int , int); // ボムの数を数え、その数を配列に入れる関数(配列データ、x軸、y軸)
main(int argc,char *argv)
{
View gifAnime2binImage.py
# -*- coding: utf-8 -*-
import numpy as np
import cv2
from PIL import Image, ImageSequence, ImageDraw
import time
import unittest
import sys
# original code : http://playground.arduino.cc/Code/PCD8544
@jitomesky
jitomesky / delay.js
Last active Aug 29, 2015
JavaScript用Delay関数。BoneScriptとあわせてどうぞ。
View delay.js
function delay(delay_ms){
var nowtime = Date.now();
var timeout = nowtime + delay_ms;
while(nowtime < timeout){
nowtime = Date.now();
}
}
// us待ちメソッド…ただし正確性は無い
function delayMicroseconds(delay_us){
@jitomesky
jitomesky / BoneScript_Grove_TemperatureSensor.js
Last active Aug 29, 2015
BoneScript_Grove_TemperatureSensor
View BoneScript_Grove_TemperatureSensor.js
// BeagleBone Black + Grove Base Cape + Grove Temperature Sensor
// Base Cape: http://www.seeedstudio.com/wiki/Grove_Cape_for_BeagleBone_Series
// Temperature Sensor: http://www.seeedstudio.com/wiki/Grove_-_Temperature_Sensor
//
// Written by Toshifumi Nishinaga
// this code is public domain
var b = require('bonescript');
var getTemperature = function(){
@jitomesky
jitomesky / bof_attacker.py
Created Jul 31, 2014
LPC11U24 stack buffer overflow demo
View bof_attacker.py
#!/usr/local/bin/python3
# -*- coding: utf-8 -*-
# please install pyserial
import serial
tty = "/dev/tty.usbserial-FTGD5T90"
com = serial.Serial(tty, 115200)
You can’t perform that action at this time.