Skip to content

Instantly share code, notes, and snippets.

View chiepomme's full-sized avatar
💜
💕

chiepomme chiepomme

💜
💕
View GitHub Profile
package Mascotty
import javafx.application.Application
import javafx.stage.StageStyle
import javafx.stage.Stage
import javafx.scene.Scene
import javafx.scene.layout.VBox
import javafx.scene.paint.Color
import javafx.scene.image.ImageView
import javafx.scene.image.Image
import javafx.scene.canvas.Canvas
class WaveView(width:Double, height:Double) : Canvas(width, height){
fun draw(waveData:ByteArray){
val c = getGraphicsContext2D()!!
val zoom = 2.0
val height = getHeight().toDouble()
val byteSize = 256
val originY = height / 2
using SpicyPixel.Threading;
using SpicyPixel.Threading.Tasks;
using System.Collections;
public class SampleConcurrency : ConcurrentBehaviour
{
void Start()
{
print("Start Start");
taskFactory.StartNew(Bootstrap())
using SKYPE4COMLib;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;
namespace mikobot
{
class Program
{
static Skype Skype;
@chiepomme
chiepomme / Signal.cs
Last active September 13, 2017 08:18
Unity で使えるシグナルを作りたかった
using System;
using System.Collections.Generic;
using UnityEngine;
public interface ISignal
{
void UnsafeSubscribe(Delegate slot, SlotGroup group = null);
void UnsafeUnsubscribe(Delegate slot, SlotGroup group = null);
}
@chiepomme
chiepomme / two.d.ts
Last active October 5, 2018 03:23
typescript declaration for two.js
declare class Two {
type: Two.Types;
width: number;
height: number;
constructor(params?: TwoConstructionParams);
appendTo(element: HTMLElement);
makeLine(x1: number, y1: number, x2: number, y2: number): Two.Shape;
makeRectangle(x: number, y: number, width: number, height: number): Two.Shape;
@chiepomme
chiepomme / .gitignore
Created February 25, 2015 06:29
Windows でファイル共有して動く ruby(rbenv) + mysql な Vagrantfile
/*
!/Vagrantfile
!/.gitignore
@chiepomme
chiepomme / ObservableList.cs
Last active August 29, 2015 14:17
まねっこ ObservableCollection
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using UnityEngine.Events;
namespace Chiepomme
{
public enum ChangeAction
{
@chiepomme
chiepomme / non-ascii-filename.rb
Last active July 23, 2016 06:24
A monkey patch for Jekyll to use non-ascii post title
require "webrick"
# put this file to [your jekyll root]/_plugins/non-ascii-filename.rb
module Jekyll
module Commands
class Serve
class Servlet < WEBrick::HTTPServlet::FileHandler
# original: webrick/httpservlet/filehandler.rb
def prevent_directory_traversal(req, res)
@chiepomme
chiepomme / find-comitia-attending-creators.go
Created August 21, 2016 14:11
自分のツイッターでフォローしている人の中でティアに参加しそうな名前の人を抜き出します
package main
import (
"fmt"
"regexp"
"github.com/ChimeraCoder/anaconda"
)
func main() {