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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
termbox "github.com/nsf/termbox-go" | |
) |
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
package main | |
import "fmt" | |
type Unit struct { | |
ID int | |
Name string | |
} | |
type Player struct { |
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
TOP_RIGHT = {x: 1130, y: 530} | |
def diff(x, y) | |
return "#{TOP_RIGHT[:x] + x},#{TOP_RIGHT[:y] + y}" | |
end | |
PRE_PROCESS = [ | |
"c:#{diff(0,0)}", | |
"c:#{diff(0,0)}", | |
"c:#{diff(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
package main | |
import ( | |
"image" | |
"gocv.io/x/gocv" | |
) | |
func main() { | |
webcam, err := gocv.OpenVideoCapture(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 UnityEngine; | |
using HTC.UnityPlugin.ColliderEvent; | |
using HTC.UnityPlugin.Utility; | |
public class DualGrabbable : MonoBehaviour | |
, IColliderEventDragStartHandler | |
, IColliderEventDragUpdateHandler | |
, IColliderEventDragEndHandler | |
{ | |
public class Grabber |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
timer := func(tag string) func() { | |
start := time.Now() |
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
use_bpm 145 | |
live_loop :chord do | |
use_synth :piano | |
use_synth_defaults attack: 0.01, sustain: 8.0, decay: 0.1, amp: 1.0 | |
use_transpose +12 | |
with_fx :reverb, room: 1.0, amp: 1.0 do | |
with_fx :distortion, distort: 0.7 do | |
with_fx :nrlpf do | |
play ([:G2,:D3,:G3]) |
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
// https://www.shadertoy.com/view/4sfGzS | |
float hash(vec3 p) // replace this by something better | |
{ | |
p = fract( p*0.3183099+.1 ); | |
p *= 17.0; | |
return fract( p.x*p.y*p.z*(p.x+p.y+p.z) ); | |
} | |
float noise( in vec3 x ) | |
{ |
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
use std::io::Read; | |
use std::num::Wrapping; | |
#[derive(Debug, Copy, Clone, PartialEq)] | |
pub enum Token { | |
Plus, | |
Minus, | |
Gt, | |
Lt, | |
LBracket, |
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; | |
public class DepthScan : MonoBehaviour | |
{ | |
[SerializeField] private Camera cam; | |
[SerializeField] private Material mat; | |
[SerializeField] private float scanSpeed = 80f; | |
private float scanDistance; |
OlderNewer