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
package main | |
import ( | |
"context" | |
"log" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
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
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
type Process uintptr |
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 sqlite3 | |
data = open('test.clip', 'rb').read() | |
sqlite_head = data.index(b'SQLite format 3') | |
with open('test.sqlite3', 'wb') as dbf: | |
dbf.write(data[sqlite_head:]) | |
sqlite = sqlite3.connect('test.sqlite3') | |
image_data = sqlite.execute('select ImageData from CanvasPreview').fetchone()[0] | |
with open('test.png', 'wb') as imf: | |
imf.write(image_data) |
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 struct | |
class Struct: | |
_fields = None # type: tuple | |
_size = None # type: int | |
@classmethod | |
def size(cls): | |
if cls._size is None: |
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
using UnityEngine; | |
namespace Assets.Scripts | |
{ | |
public static class GameObjectExtension | |
{ | |
public static void AddChild(this GameObject parent, GameObject child) | |
{ | |
var instantiatedObject = GameObject.Instantiate(child); | |
instantiatedObject.transform.parent = parent.transform; |
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
window.onload = function() { | |
// 初期設定 | |
var canvas = document.createElement("canvas"); | |
canvas.width = 500; | |
canvas.height = 250; | |
document.body.appendChild(canvas); | |
var stage = new createjs.Stage(canvas); | |
// 追従する箱 | |
var box = new createjs.Shape(); |
- pinf, sinf, apID, purd にitunes の購入情報が入っている
- https://hydrogenaud.io/index.php/topic,99548.25.html
- https://metacpan.org/source/Audio::M4P::QuickTime#L558
+ pinf
|
+--+ schi
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
#include "../headers/EARTH_PT3.h" | |
#include "../headers/EX_Buffer.h" | |
#include "Windows.h" | |
int main(void) | |
{ | |
auto dll = LoadLibrary(L"SDK_EARTHSOFT_PT3.dll"); | |
auto newBusFunc = reinterpret_cast<EARTH::PT::Bus::NewBusFunction>(GetProcAddress(dll, "_")); | |
EARTH::PT::Bus* bus; |
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
/** | |
* "1A 2B 3C" のような16進数表記文字列をバイト配列に変換する | |
*/ | |
$scope.hexs2bytes = function(hexs) { | |
return hexs.split(' ').map(function(h) { return parseInt(h, 16) }); | |
}; | |
/** | |
* バイト配列を"1A 2B 3C"のような16進数表記文字列に変換する | |
*/ |
NewerOlder