Skip to content

Instantly share code, notes, and snippets.

View hpssjellis's full-sized avatar
🙂

Jeremy Ellis hpssjellis

🙂
View GitHub Profile
@hpssjellis
hpssjellis / llama2-monsterapis.py
Created July 31, 2023 18:03 — forked from svpino/llama2-monsterapis.py
Llama 2 - MonsterAPIs.
import requests
import json
from time import sleep
API_KEY = "INSERT YOUR API KEY HERE"
AUTHORIZATION = "INSERT YOUR AUTHORIZATION TOKEN HERE"
url = "https://api.monsterapi.ai/apis/add-task"
fetch_url = "https://api.monsterapi.ai/apis/task-status"
int8_t sendATcommand(char* ATcommand, char* expected_answer, unsigned int timeout){
uint8_t x=0, answer=0;
char response[100];
unsigned long previous;
memset(response, '\0', 100); // Clean response buffer
delay(100); // Delay to be sure no passed commands interfere
@hpssjellis
hpssjellis / AllGattCharacteristics.java
Created March 6, 2021 18:33 — forked from sam016/AllGattCharacteristics.java
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
@hpssjellis
hpssjellis / console.dart
Created November 15, 2019 20:16 — forked from graphicbeacon/console.dart
Final snippets for "How to use JavaScript libraries in your Dart applications" article
// web/console.dart
@JS('console')
library console;
import 'package:js/js.dart';
external void log(dynamic str);
@hpssjellis
hpssjellis / html
Last active November 15, 2017 21:33 — forked from anonymous/html
deeplearn.js playground 1509994912630
<h1 align=center>SqueezeNet Cat Demo</h1>
Trying to dynamically load an image but running into corssorigin issues.
Have had some suuccess with <br>
//https://crossorigin.me/your-URL<br><br>
https://www.what-dog.net/Images/faces2/scroll001.jpg <br>
but then how to re-activate the script. It does not seem to have a way to call it<br>
@hpssjellis
hpssjellis / mytest.html
Last active November 6, 2020 16:33
test playground deeplearnjs
<script src="mytest.js"></script>
<input type=button value=click onclick="{
myFun()
}">
@hpssjellis
hpssjellis / MIDI_scales.js
Created June 18, 2017 18:08 — forked from gleitz/MIDI_scales.js
MIDI scale arrays in Javascript
var scales = {
'natural major': [0,2,4,5,7,9,11,12],
'ionian': [0,2,4,5,7,9,11,12],
'major': [0,2,4,5,7,9,11,12],
'chromatic': [0,1,2,3,4,5,6,7,8,9,10,11,12],
'spanish 8 tone': [0,1,3,4,5,6,8,10,12],
'flamenco': [0,1,3,4,5,7,8,10,12],
'symmetrical': [0,1,3,4,6,7,9,10,12],
'inverted diminished': [0,1,3,4,6,7,9,10,12],
'diminished': [0,2,3,5,6,8,9,11,12],
@hpssjellis
hpssjellis / install-tensorflow.sh
Created May 27, 2016 04:44 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@hpssjellis
hpssjellis / Procfile
Created April 24, 2016 20:47 — forked from devgeeks/Procfile
Serve Star Track via phonegap.serve() on Heroku
web: npm start
package simplejavaserver;
import java.net.*;
import java.io.*;
public class SimpleJavaServer extends Thread
{
private ServerSocket serverSocket;
public SimpleJavaServer(int port) throws IOException