Skip to content

Instantly share code, notes, and snippets.

View iomz's full-sized avatar
❤️‍🔥

Iori Mizutani iomz

❤️‍🔥
  • University of St.Gallen
  • St.Gallen, Switzerland
  • 05:17 (UTC +02:00)
  • X @iomz
View GitHub Profile
@iomz
iomz / felica_dump.c
Created April 16, 2013 05:57
Read card ID (IDm) by Pasori reader and send it by socket communication
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
@iomz
iomz / LICENSE.txt
Created July 24, 2012 13:09 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@iomz
iomz / stay_over.py
Last active April 24, 2016 16:04
gist: 2383539 in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# SFC-SFS "Report for overnight stay" script
# Last modified: 4/12/2016
#
# **Fisrt complete the values below**
# =begin===========================================================
login = "" # Ex. "s58000yf"
passwd = "" # Ex. "yukichifukuzawa" (passwd is hardcoded here)
@iomz
iomz / HadamardMatrixMaker.py
Created July 19, 2012 14:29
Takes an interger n for 2^n x 2^n Hadamard matrix
#!/usr/bin/env python
# Takes an interger n for 2^n x 2^n Hadamard matrix
import numpy as np
import sys
def recursiveKronecker(k, hmat):
if 2**(k-1) == 1:
return hmat
else:
@iomz
iomz / fri13.py
Created April 12, 2012 13:28
Jason's day
Months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
Days = [31,29,31,30,31,30,31,31,30,31,30,31]
DateDict = dict(zip(Months,Days))
WeekDayList = ["Sunday","Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
weekinitializer = [0,0,0,0,0,0,0]
monthinitializer = [0,0,0,0,0,0,0,0,0,0,0,0]
Thirteens = dict(zip(WeekDayList, weekinitializer))
JasonCount = []
JasonMonthCount = dict(zip(Months, monthinitializer))