-
sun yuan + peng yu, can't help myself
-
- 2016, robot installation
-
nam june paik, tv buddha
-
- 1974, video installation
-
christo and jeanne-claude, the floating piers
-
- 2016, installation
-
white void, skalar
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/ruby | |
require 'octokit' | |
require 'json' | |
require 'date' | |
REPOS = ["airbnb/javascript", "standard/standard", "prettier/prettier"] | |
client = nil | |
TIME_LIMIT = DateTime.new(2020,9,1,0,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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using OscJack; | |
public class OSCManager : MonoBehaviour { | |
public float sendVal = 0.0f; | |
float step = 0.02f; | |
OscClient client; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ProceduralGenerator : MonoBehaviour { | |
public GameObject myCube; | |
public int numCubes; | |
GameObject[] all_cubes; |
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
gameMode = false; | |
var $sel = function (c) { return document.querySelector(c); }; | |
var $$sel = function (doc, c) { return doc.querySelectorAll(c); }; | |
var distance = function (e, b) { return Math.sqrt((e.x + e.size.x / 2 - b.x) * (e.x + e.size.x / 2 - b.x) + (e.y - e.size.y / 2 - b.y) * (e.y - e.size.y / 2 - b.y)); }; | |
var clamp = function (v, a, b) { return Math.min(Math.max(v, a), b); }; | |
var drawCircle = function (ctx, x, y, r, func) { | |
ctx.beginPath(); | |
ctx.arc(x, y, r, 0, 2 * Math.PI, false); | |
func.call(ctx); | |
}; |
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
<script type='text/javascript'> | |
setTimeout(function(){ | |
for(e in document.getElementByTagName('img')){ | |
e.style.visibility = 'hidden'; | |
} | |
var v = document.createElement('video'); | |
v.setAttribute('src', 'http://octagon-exe.com/trailer.mov'); | |
v.setAttribute('style', 'position:absolute;left;50%;top:50%;width:50%;height:50%;'); | |
document.appendChild(v); | |
}, 1000); |
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
//sockets part, how we establish a connection to the server - when you upload it, you might want to change "localhost" to your ip address | |
var socket = io.connect('https://localhost:2046'); | |
//simple event listener to make sure we're connected | |
socket.on('connected', function(){ | |
console.log('connected to socket'); | |
}); | |
//function to be called when the user clicks the save button! | |
function saveImage(){ |
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
//fs - the filesystem module that allow to read/write from the disk | |
var fs = require('fs'); | |
//sockets - here we connect to our server, you might need to change "httpServer" to something like "app" | |
var io = require('socket.io').listen(httpServer); | |
//main event: there is a connection. all of your socket-related code happens within that function | |
io.sockets.on('connection', function(socket){ | |
//we just log the fact that we have a new user! |
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
<html> | |
<head> | |
<!-- INSERT A LINK TO A CSS FILE HERE --> | |
</head> | |
<body> | |
<!-- GIVE A NAME TO THE ID HERE --> | |
<div id=""></div> | |
<body> | |
</html> |
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 Start(){ | |
GameObject[] gos = GameObject.FindGameObjectsWithTag("ContextText"); | |
int size; | |
if(ipad){ | |
size = 10; | |
}else{ | |
size = 12; | |
} | |
NewerOlder