Skip to content

Instantly share code, notes, and snippets.

View binitshah's full-sized avatar

Binit Shah binitshah

View GitHub Profile
@binitshah
binitshah / BluetoothVerify.ino
Created April 18, 2020 23:30
Basic chat program between Arduino Serial Monitor & connected Bluetooth Terminal. Switch baud rate for AT mode.
/*
HC05 - Bluetooth Verifier
modified on 10 Feb 2019
by Saeed Hosseini
https://electropeak.com/learn/guides
Notes:
- when using Serial monitor, the "Both NL & CR" newline must be set
- BlE does AT FIRMWARE responses at baud rate 38400, reflected in code
- BLE does respond via AT to most commands, but to use AT+NAME?, you must hold power/reset button on ble module while pressing enter
@binitshah
binitshah / SubdivisionSurfaceTest.py
Created October 4, 2019 18:08
Downloads a model from Blender, performs subdivisions on it, and send it back to Blender
import bpy
cam = bpy.data.objects['Camera']
model = bpy.data.objects['model']
step_count = 1
Class SubdivisionModel:
def __init__(vertices):
self._vertices = vertices
/*
This sketch establishes a TCP connection to a "quote of the day" service.
It sends a "hello" message, and then prints received data.
*/
#include <ESP8266WiFi.h>
#ifndef STASSID
#define STASSID "SampleHotspot"
#define STAPSK "genericpasswordthatdoestwork"
@binitshah
binitshah / GTwifi
Last active February 14, 2018 03:00 — forked from justbuchanan/GTwifi
Arch Linux netctl config for GTwifi at Georgia Tech
# This netctl profile is for connecting to Georgia Tech's GTwifi network
# Usage:
# 1. Copy/download this profile, 'GTwifi', to /etc/netctl/
# 2. Set the 'identity' and 'password' fields appropriately
# 3. Set the Interface to your device. you can run 'iw dev' to get a list.
# 4. Set file permissions and ownership:
# chown root:root /etc/netctl/GTwifi
# chmod 0600 /etc/netctl/GTwifi
# 5. Start the profile
# netctl start GTwifi
@binitshah
binitshah / linknode_server.ino
Created September 23, 2017 06:13
simple web server on the linknode d1 knockoff for esp8266
#include <ESP8266WiFi.h>
const char* ssid = "Binit's iPhone";
const char* password = "pass";
int rightPin = 13;
int leftPin = 12;
WiFiServer server(80);
void setup() {
@binitshah
binitshah / haha.go
Created July 17, 2017 21:23
CLI app in golang. How awesome is that?
/*
* haha.go
*
* Author: Binit Shah
* Description: Messing around with cli fun.
*/
package main
import (