Skip to content

Instantly share code, notes, and snippets.

View selfsame's full-sized avatar

Joseph Parker selfsame

View GitHub Profile
(ns biology.squid
(:use hard.core hard.input hard.tween unity.messages)
(:require unity.core))
(defn squid-start [this])
(defn squid-update [this]
(let [h (get-axis :horizontal)
v (get-axis :vertical)
body (component this "Rigidbody")
IOException: Sharing violation on path C:\projects\joe\dev\unity\vanilla\Assets\Arcadia\Source\clojure\core\server.clj
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:320)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share)
(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
System.IO.FileInfo.Open (FileMode mode, FileAccess access, FileShare share) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileInfo.cs:210)
System.IO.FileInfo.Open (FileMode mode, FileAccess access) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileInfo.cs:205)
System.IO.FileInfo.OpenText () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileInfo.cs:168)
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
using UnityEngine;
using Valve.VR;
public struct ClickedEventArgs
{
public uint controllerIndex;
public uint flags;
public float padX, padY;
}
package main
import "github.com/nsf/termbox-go"
import "time"
const animationSpeed = 10 * time.Millisecond
var x, y = 5, 5
var pchar = "@"
This file has been truncated, but you can view the full file.
--------- beginning of metrics
I/battery ( 37): bq24296:def:POWER_STATUS_DISCHARGING=1;CT;1,cap=100;CT;1:NR
I/LoggerMetricsFactoryImpl( 1038): SysUi:PowerMetrics:chargeDuration=14.0;CT;1,unplugged=1.0;CT;1:NR
I/USBCableEvent( 37): do_chrdet_int_task:bq24297:vbus_on=1;CT;1;DV;1:NR
I/kernel ( 37): usb_connection_status:def:usb_connected=1;CT;1,timestamp=3782245240;TI;1:NR
(ns tween.faster
(use magic.faster)
(import
[UnityEngine Application MonoBehaviour WaitForSeconds Time Mathf
GameObject Color Vector4 Vector3 Vector2 Quaternion Debug]
[System Object]
[System.Collections IEnumerator]
Wait MonoObj TimeLine
ObjectPair SinglePair DoublePair Int16Pair Int32Pair Int64Pair QuaternionPair
(ns universe.shaders
(use hard.core arcadia.core)
(:require
[clojure.pprint :as pprint]
[clojure.walk :as walk]
[gamma-tools.core :as gamma-tools :refer [g* g- g+ gdiv]]
[gamma.api :as g]
[gamma.program :as p]))
(defn- datatype? [v] (or (sequential? v)(map? v)(vector? v)))
(defn -ogroup [form2]
(reduce
(fn [{:keys [stack cursor]} v]
(cond (= :v-par-start v) {:stack (conj stack []) :cursor (conj cursor 0)}
(= :v-par-end v) [stack] ;(first col)
:else {:stack (conj stack v) :cursor cursor}))
{:stack [] :cursor [0]} form2))
(defn -ooo [form]
(ns soa.core)
(deftype Graph [cnt rec])
(defn new-graph [cnt rec-type]
(let [rec (new rec-type)]
(Graph. cnt
(reduce
#(assoc %1 %2 (into [] (map (fn [_] nil)(range cnt))))
rec
(ns fast.cache)
(defmacro get? [sym id]
(let [ar-sym (symbol (str "fast.cache/ar-" sym))]
`(aget ~ar-sym ~id)))
(defmacro put! [sym k v]
(let [ar-sym (symbol (str "fast.cache/ar-" sym))]
`(aset ~ar-sym ~k ~v)))