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 Unity.Burst; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Jobs.LowLevel.Unsafe; | |
using System.Threading; | |
[NativeContainer] | |
[NativeContainerIsAtomicWriteOnly] | |
public unsafe struct NativeXorshift64CASFree { | |
private const int LongsPerCacheLine = JobsUtility.CacheLineSize / sizeof(long); |
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; | |
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using System.Threading; | |
public unsafe struct NativeXorshift64 { | |
[NativeDisableUnsafePtrRestriction] | |
public ulong *y; |
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; | |
using UnityEditor; | |
using System; | |
using System.Runtime.InteropServices; | |
public class NewBehaviourScript : MonoBehaviour { | |
[DllImport("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")] | |
public static extern IntPtr objc_msgSend(IntPtr receiver, IntPtr selector); | |
[MenuItem("Unity/Force Shutdown")] |
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
const Docker = require('dockerode'); | |
const fs = require('fs'); | |
const midi = require('midi'); | |
const parseMidi = require('midi-file').parseMidi; | |
const docker = new Docker(); | |
const midiOutput = new midi.output(); | |
const midiInput = new midi.input(); | |
function noteNumberToNoteName(noteNumber) { |
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 <Keyboard.h> | |
bool leftPressed = false, rightPressed = false; | |
bool left2Pressed = false, right2Pressed = false; | |
void setup() { | |
pinMode(2, INPUT_PULLUP); | |
pinMode(3, INPUT_PULLUP); | |
pinMode(5, INPUT_PULLUP); | |
pinMode(6, INPUT_PULLUP); |
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 System; | |
using System.Runtime.InteropServices; | |
public class AquesTalk : MonoBehaviour { | |
[DllImport ("AquesTalkPlugin")] | |
private static extern int AquesTalk2Synthe(string koe, int speed, IntPtr data, int size); | |
private float[] buffer = new float[1 * 1024 * 1024]; | |
void Synthe(string koe) { |
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
var midi = require('midi'); | |
var getwild = [63, 61, 59, 63, 61, 59, 59, 59, 61, 63, 63, 64, 63, 59, 63, 63, 61, 59]; | |
var output = new midi.output(); | |
output.openPort(0); | |
var input = new midi.input(); | |
input.openPort(0); |
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 <asiosys.h> | |
#include <asio.h> | |
#include <asiodrivers.h> | |
#include "monoAPI.h" | |
#define UNITY_ASIO_MAX_DRIVERS 16 | |
extern "C" __declspec(dllexport) MonoArray *UnityASIOEnumerateDrivers() { | |
AsioDrivers *asioDrivers = new AsioDrivers(); |
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
# -*- coding: utf-8 -*- | |
import readline | |
import time | |
from line import LineClient, LineGroup, LineContact | |
client = LineClient(authToken="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") | |
contact = client.getContactByName("りんな") |
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
#!/usr/bin/python | |
import json | |
import mechanize | |
import re | |
inventory = { "conoha": { "hosts": [] }, "_meta": { "hostvars" : {} } } | |
br = mechanize.Browser() | |
br.open("https://cp.conoha.jp/Login.aspx") |
NewerOlder