This file contains hidden or 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
const canvasSketch = require("canvas-sketch"); | |
const Tweakpane = require("tweakpane"); | |
const settings = { | |
dimensions: [2048, 2048], | |
animate: true, | |
}; | |
const params = { | |
rows: 10, |
This file contains hidden or 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
import { PublicClientApplication } from "@azure/msal-browser"; | |
import { Client } from "@microsoft/microsoft-graph-client"; | |
import React, { useState, createContext, useEffect } from "react"; | |
export const AzureAuthContext = createContext({}); | |
export const AzureAuthProvider = ({ children }) => { | |
const [isAuthenticated, setIsAuthenticated] = useState(false); | |
const [userProfile, setUserProfile] = useState({}); | |
const ACTIVE_DIRECTORY_SCOPES = ['user.read']; |
This file contains hidden or 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
let mic, timeline, minLevel, maxLevel; | |
function setupAudio(){ | |
userStartAudio(); | |
mic = new p5.AudioIn(); | |
mic.start(); | |
} | |
function setup() { |
This file contains hidden or 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
extends Node2D | |
var image | |
var should_update_canvas = false | |
var drawing = false | |
# Called when the node enters the scene tree for the first time. | |
func _ready(): | |
create_image() | |
update_texture() |
This file contains hidden or 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
let fft, mic, waveform, spectrum; | |
function setupAudio(){ | |
userStartAudio(); | |
mic = new p5.AudioIn(); | |
mic.start(); | |
fft = new p5.FFT(0, 2048); | |
fft.setInput(mic); | |
} |
This file contains hidden or 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
let mic, timeline; | |
function setupAudio(){ | |
userStartAudio(); | |
mic = new p5.AudioIn(); | |
mic.start(); | |
} | |
function setup() { |
This file contains hidden or 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
let fft, mic, waveform, spectrum; | |
function setupAudio(){ | |
userStartAudio(); | |
mic = new p5.AudioIn(); | |
mic.start(); | |
fft = new p5.FFT(0.9, 1024); | |
fft.setInput(mic); | |
} |
This file contains hidden or 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
#!/bin/sh | |
# installation of Oracle Java JDK. | |
sudo apt-get -y update | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get -y update | |
sudo apt-get -y install oracle-java7-installer | |
# Installation of commonly used python scipy tools |
This file contains hidden or 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> | |
<title>Opentok Experiment</title> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js'></script> | |
<script src='http://static.opentok.com/webrtc/v2.2/js/opentok.min.js'></script> | |
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> | |
<script type="text/javascript"> | |
// Initialize API key, session, and token... | |
// Think of a session as a room, and a token as the key to get in to the room | |
// Sessions and tokens are generated on your server and passed down to the client |