Skip to content

Instantly share code, notes, and snippets.

View JT5D's full-sized avatar
💭
Multiversing...

JT5D JT5D

💭
Multiversing...
View GitHub Profile
@bsergean
bsergean / README.md
Last active January 23, 2024 17:50
Anti-aliasing (FXAA) with headless-gl and three.js

Aliased

Anti-aliased

Getting the code

@tinusn
tinusn / app.js
Created December 6, 2015 19:40
electron node-muse
'use strict';
const electron = require('electron');
const nodeMuse = require("node-muse");
const Muse = nodeMuse.connect().Muse;
const OSC = nodeMuse.OSC;
const app = electron.app; // Module to control application life.
const BrowserWindow = electron.BrowserWindow; // Module to create native browser window.
// Report crashes to our server.
@beeva-enriqueotero
beeva-enriqueotero / docker-neuraltalk2-demo-camera.sh
Last active December 24, 2021 10:19
docker-neuraltalk2 demo
# docker-neuraltalk2 demo with webcam support (Warning: docker-neuraltalk2 image size > 3GB)
# Launch interactive container:
docker run -i -t -p 8000:8000 --privileged -v /dev/video0:/dev/video0 beevaenriqueotero/docker-neuraltalk2 /bin/bash
# And then execute:
git clone https://github.com/Mithul/neuraltalk2.git neuraltalk2-camera
luarocks install camera
cd neuraltalk2-camera/vis
python -m SimpleHTTPServer &
cd ..
@michidk
michidk / Example.cs
Last active April 8, 2018 02:31
C# + Unity Convention
using System.Collections;
using System.Collections.Generic;
namespace Default // or <Company>.(<Product>|<Technology>)[.<Feature>][.<Subnamespace>]
{
public class Example
{
// first consts
public const int TheAnswer = 42;
#pragma strict
import SimpleJSON;
var currentImageIndex = 0;
var isWaiting = false;
var startRotation;
function Update(){
//startRotation = transform.rotation;
//transform.Rotate(Vector3(0,0,1));
@auycro
auycro / PlistPostProcess.cs
Last active October 29, 2021 11:40
Unity update info.plist
//Copyright (c) 2015 Gumpanat Keardkeawfa
//Licensed under the MIT license
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
public static class XCodePostProcess
@martinsik
martinsik / circle_detection.py
Last active April 22, 2023 09:50
Circle detection with OpenCV 3.0
import cv2
import time
import math
import numpy as np
capture = cv2.VideoCapture(0)
print capture.get(cv2.CAP_PROP_FPS)
t = 100
w = 640.0
@radiatoryang
radiatoryang / BuildRadiator.cs
Last active April 28, 2025 09:48
This is my Unity Editor build script that I use for my games, to automatically build out players and package them in ZIP files.
using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.IO.Compression;
using Ionic.Zip; // this uses the Unity port of DotNetZip https://github.com/r2d2rigo/dotnetzip-for-unity
using UnityEngine;
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
{
protected static T instance;
/**
Returns the instance of this singleton.
*/
@karpathy
karpathy / min-char-rnn.py
Last active July 2, 2025 20:59
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)