Skip to content

Instantly share code, notes, and snippets.

@jvcleave
jvcleave / openframeworks jetson nano.txt
Last active March 1, 2023 10:10
openframeworks jetson nano instructions
Nightly required - get link from the bottom of this page (e.g. https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz)
https://openframeworks.cc/download/
Download OF and unpack:
wget https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz
tar -zxvf of_v20190324_linuxarmv7l_nightly.tar.gz
mv of_v20190324_linuxarmv7l_nightly openFrameworks
######################
# Options
######################
REVEAL_ARCHIVE_IN_FINDER=false
@isohedral
isohedral / xi.cpp
Last active December 26, 2018 16:01
C++ value that generates uniform random numbers in [0,1]
// A C++ object that generates uniformly distributed random numbers in [0,1].
// Inspired by the built-in value of the same name in nano ᴊᴀᴍᴍᴇʀ
// (see https://morgan3d.github.io/nano/doc/specification.md.html)
#include <iostream>
#include <random>
static class RandomXi
{
public:
@phillipi
phillipi / biggan_slerp
Last active October 8, 2023 01:25
Slerp through the BigGAN latent space
# to be used in conjunction with the functions defined here:
# https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/biggan_generation_with_tf_hub.ipynb
# party parrot transformation
noise_seed_A = 3 # right facing
noise_seed_B = 31 # left facing
num_interps = 14
truncation = 0.2
category = 14
@sineld
sineld / _verify-repair-permissions-disk.md
Created August 14, 2018 10:00 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@mattdesl
mattdesl / MotionGrid.tsx
Created August 10, 2018 11:18
FramerX & canvas-sketch
import * as React from "react";
import { PropertyControls, ControlType } from "framer";
import * as canvasSketch from 'canvas-sketch';
import sketch, { settings } from './sketch';
const style: React.CSSProperties = {
};
export class MotionGrid extends React.Component {
@matthewreagan
matthewreagan / Perlin
Last active March 30, 2024 16:18
Perlin noise generation in Swift
// Perlin.swift
// Created by Matthew Reagan on 8/7/18.
//
// Quick implementation of the the classic Perlin noise
// generation function, useful for creating organic textures
// or terrain. Perlin noise can also be easily generated with
// Apple's GameplayKit framework, this code is mostly for
// experimentation purposes. (Disclaimer: This code is not
// optimized, nor particularly elegant, but it can be used as
// a jumping off point for writing custom noise functions.)
###
### script to detect objects in live video
### using MobileNets+SDD
###
### by: memeka <mihailescu2m@gmail.com>
###
import argparse, json
import time, datetime, threading
import numpy, cv2
@chandler767
chandler767 / pubnub-ESP8266.ino
Last active November 13, 2020 10:11
Pubnub Arduino SDK code sample for ESP8266. Demonstrates publish and subscribe. Get your unique PubNub keys from the PubNub Developer Portal (https://admin.pubnub.com/?devrel_gh=PubNub-UV-Index-Monitor ). If you don't have a PubNub account, you can sign up for a PubNub account for free (https://dashboard.pubnub.com/signup/?devrel_gh=PubNub-UV-In…
#include <ESP8266WiFi.h>
#define PubNub_BASE_CLIENT WiFiClient
#include <PubNub.h>
const char* ssid = "YourSSID";
const char* password = "YourPASSWORD";
const char* channelName = "hello_world";
void setup() {
Serial.begin(9600);
@autumnssun
autumnssun / TempiFFT.swift
Created June 13, 2018 11:43
this tempi fft works with xcode 10
import Foundation
import Accelerate
@objc enum TempiFFTWindowType: NSInteger {
case none
case hanning
case hamming
}
@objc class TempiFFT : NSObject {