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 http.client | |
import json | |
import os | |
import sys | |
import mimetypes | |
def transcribe_audio(api_key, audio_file_path): | |
conn = http.client.HTTPSConnection("api.openai.com") | |
boundary = "----WebKitFormBoundary7MA4YWxkTrZu0gW" | |
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
1. open terminal | |
2. cd ~/Documents/Processing/libraries/openkinect_processing/library/v1/mac/share | |
3. run `freenect-glview` | |
now your kinect will work inside processing app |
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 authkey = // authkey stored somewhere ie. file / database | |
const client_id = ""; // Your client id | |
const client_secret = ""; // Your secret | |
const refresh_token = ""; | |
console.log(authkey.keyvalue); | |
const getCover = () => { | |
axios |
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
if (light === "star") { | |
hyperdrive.writeSync(1); | |
try { | |
clearTimeout(hyperdriveTimer); | |
} catch (e) {} | |
hyperdriveTimer = setTimeout(function() { | |
hyperdrive.writeSync(0); | |
}, 3000); | |
play("r2d2"); | |
} |
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
if (args.action == 'started') { | |
args.light = 'star' | |
args.status = 1 | |
} |
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
<link rel="manifest" href="/manifest.webmanifest" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<link | |
rel="apple-touch-icon" | |
sizes="192x192" | |
href="/images/icons/icon-192x192.png" | |
/> | |
<link | |
href="splashscreens/iphone5_splash.png" | |
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" |
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
{ | |
"name": "Millennium Falcon", | |
"short_name": "Falcon", | |
"theme_color": "#2196f3", | |
"background_color": "#2196f3", | |
"display": "standalone", | |
"orientation": "portrait", | |
"scope": "/", | |
"icons": [{ | |
"src": "/images/icons/icon-128x128.png", |
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 axios from "axios"; | |
const hyperdrive = document.querySelector(".-hyperdrive"); | |
const cockpit = document.querySelector(".-cockpit"); | |
const headlights = document.querySelector(".-headlights"); | |
let lights = { | |
cockpit: 0, | |
front: 0, | |
hyperdrive: 0 |
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 ws = new WebSocket(socketUrl) | |
ws.on("open", function open() { | |
console.log("Connected 🚀") | |
}); | |
ws.on("message", function incoming(data) { | |
const parsed = JSON.parse(data) | |
const message = parsed.payload |
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 Syncano from '@syncano/core' | |
export default (ctx) => { | |
const {channel, response} = new Syncano(ctx) | |
const {args} = ctx | |
try { | |
channel.publish(`global-messages`, {'light': args.light, 'status': args.status}) | |
.then(res => {response(JSON.stringify(res), 200, 'application/json')}) | |
} catch(e) { |
NewerOlder