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
void ofApp::triangleMesh(ofMesh && mesh, float radius) { | |
ofPoint capturedPoint, capturedPoint2; | |
for (int i = 0; i < 25; i+=2) { | |
mesh.addIndex(i); | |
mesh.addIndex(i + 1); | |
} | |
for (int i = 0; i < 25; i++) { |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Text; | |
using UnityOSC; |
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
-- custom osc send to unity | |
module UnityOsc where | |
import Sound.Tidal.Stream | |
import Sound.Tidal.Pattern | |
import Sound.Tidal.Parse | |
import Sound.Tidal.OscStream | |
port = 5000 |
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 SceneKit | |
import QuartzCore | |
class GameViewController: NSViewController { | |
@IBOutlet weak var gameView: GameView! | |
override func awakeFromNib(){ | |
let numBox = 300 |
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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ayu-Texture-Test</title> | |
<script src="http://threejs.org/build/three.min.js"></script> | |
<script src="http://code.jquery.com/jquery-1.12.1.min.js"></script> | |
</head> | |
<script type="x-shader/x-vertex" id="vs"> |
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
// 前提条件 | |
// サクラVPS OS Ubuntu 14.04 | |
// 下準備 | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo apt-get install pkg-config | |
// linux用のoFをDLしてきて |
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
#target illustrator | |
var sel = app.activeDocument.selection; | |
var height_ = app.activeDocument.height | |
var file = File.saveDialog('save centers', 'center:*.txt'); | |
var height_ = app.activeDocument.height | |
file.open('w') | |
file.write("[\n") | |
for(var i = 0; i < sel.length; i++){ |
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/env python | |
# -*- coding:utf-8 -*- | |
import optparse | |
import httplib | |
from lxml import etree | |
# Yahoo!API config | |
appId = 'APPLICATION ID' | |
session = httplib.HTTPConnection('jlp.yahooapis.jp') |
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
this.car_select = $("#swipe-section").children("img"); | |
$('#carSelect').hammer({ | |
prevent_default: true, | |
drag_vertical: true, | |
release: true | |
}) | |
.on('drag dragend', function (ev) { | |
if (!self.isAnimating) { | |
var gest = ev.gesture; | |
switch (ev.type) { |
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 UDP library | |
import hypermedia.net.*; | |
UDP udp; | |
void setup() { | |
udp = new UDP( this, 3054 ); //port from xbee wi-fi | |
udp.listen( true ); | |
} |