Skip to content

Instantly share code, notes, and snippets.

@nomissbowling
nomissbowling / AudioDat.py
Last active November 14, 2018 04:23
AudioDat.py
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
'''AudioDat
a sin(2 pi f0 t)
print(pyaudio.paInt8) # 16 00010000
print(pyaudio.paInt16) # 8 00001000
print(pyaudio.paInt24) # 4 00000100
print(pyaudio.paInt32) # 2 00000010
print(pyaudio.paInt48) # no attribute
print(pyaudio.paInt64) # no attribute
@nomissbowling
nomissbowling / import_osm.py
Created December 9, 2018 07:35 — forked from batFINGER/import_osm.py
Blender GEO OSM import tweak
# This is the release version of the plugin file io_import_scene_osm_dev.py
# If you would like to make edits, make them in the file io_import_scene_osm_dev.py and the other related modules
# To create the release version of io_import_scene_osm_dev.py, execute:
# python plugin_builder.py io_import_scene_osm_dev.py
bl_info = {
"name": "Import OpenStreetMap (.osm)",
"author": "Vladimir Elistratov <[email protected]> and gtoonstra",
"version": (1, 1, 0),
"blender": (2, 7, 4),
"location": "File > Import > OpenStreetMap (.osm)",
@nomissbowling
nomissbowling / memo.md
Created December 26, 2018 05:11 — forked from cia-rana/memo.md
APNGの構造メモ

APNGの構造メモ

PNG

Portable Network Graphics。

全体構造

PNGの構造は非常に単純で、ファイルをPNG画像と認識するためのシグネチャと、様々なデータを表すチャンクからなる。

PNGの構造
シグネチャ
@nomissbowling
nomissbowling / sm8517855.py
Created January 11, 2019 04:06
One Hour Tetris (sm8517855)
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import sys, os
import numpy as np
import time
import copy
import ctypes
import struct
import binascii
@nomissbowling
nomissbowling / midi_in_sample.cpp
Created July 17, 2019 02:59 — forked from yoggy/midi_in_sample.cpp
MIDI-in sample program for Win32 (using winmm.lib)
#include <SDKDDKVer.h>
#include <Windows.h>
#include <stdio.h>
#include <conio.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
void PrintMidiDevices()
@nomissbowling
nomissbowling / msgpack_issue_121.md
Created August 25, 2019 04:01 — forked from repeatedly/msgpack_issue_121.md
MessagePackが文字列とバイナリをわけないのは問題?

MessagePackが文字列とバイナリをわけないのは問題?

msgpack/msgpack#121

Objective Cの実装使ってるとある問題にぶちあたった.なので,文字列をちゃんとバイナリ(Raw)と分けるべき,という提案

(*) 俺は熟読したわけではないので,中身が気になる人はちゃんと本スレを読みましょう

そもそもMessagePackとは

/*
* fork.c
* Experimental fork() on Windows. Requires NT 6 subsystem or
* newer.
*
* Copyright (c) 2012 William Pitcock <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
@nomissbowling
nomissbowling / fork.c
Created September 14, 2019 00:08 — forked from Cr4sh/fork.c
fork() for Windows
/*
* fork.c
* Experimental fork() on Windows. Requires NT 6 subsystem or
* newer.
*
* Copyright (c) 2012 William Pitcock <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.