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
#!/bin/sh | |
TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
ROOM_ID=999999 | |
while read LINE | |
do | |
if [[ $LINE =~ ^Subject:\ (.*)$ ]] ; then | |
SUBJECT="${BASH_REMATCH[1]}" | |
elif [ -z "$LINE" ] ; then |
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
# encoding: utf-8 | |
require "suddenly_death" | |
require "ttfunk" | |
file = TTFunk::File.open(ARGV[0]) | |
ARGV[1].split(//).each do |c| | |
l = 0 | |
file.cmap.unicode.each do |u| |
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") |
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
#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
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
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
#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
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
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")] |
OlderNewer