Skip to content

Instantly share code, notes, and snippets.

View jtbg's full-sized avatar

Justin Bassett-Green jtbg

View GitHub Profile
3D Graphics
3D Printing
Adult Education
Adventure Travel
Africa Travel
Air Travel
Alcohol
American Football
Amusement and Theme Parks
Angel Investment
@jtbg
jtbg / moveableGrammarlyButton.js
Created July 15, 2023 23:40
moveableGrammarlyButton.js
// ==UserScript==
// @name Make Grammarly button draggable
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Make the Grammarly button draggable
// @author Justin Bassett-Green
// @match *://*/*
// @grant none
// ==/UserScript==
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
SELECT id,
name,
num_prod,
vendor_product_count
FROM
(SELECT vendor_id,
count(*) AS num_prod
FROM products
GROUP BY vendor_id) foo
RIGHT JOIN
1. Download and install the latest version of the arduino IDE from: https://www.arduino.cc/en/main/software
2. Start the Arduino IDE. Open the "Sketch" menu and select "Include Library" > "Manage libraries"
3. Search for the "Adafruit ESP8266" library and click "Install"
4. Select File > New to create a new sketch
in the new file, paste the basic sketch code in place of the code that's already there:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
const char* ssid = "myCoolWiFiNetworkName"; //replace with your network name
const char* password = "mySecretWiFiPassword"; //replace with your network password
import subprocess
arp_output = subprocess.Popen(('arp', '-a'), stdout=subprocess.PIPE)
ipout = arp_output.communicate()[0]
print ipout
@jtbg
jtbg / keybase.md
Last active November 30, 2020 17:58

Keybase proof

I hereby claim:

  • I am jtbg on github.
  • I am justintbassett (https://keybase.io/justintbassett) on keybase.
  • I have a public key whose fingerprint is 731A F3ED 1AC7 4ACC 1456 5BFD 213F B9F5 CC92 4F95

To claim this, I am signing this object:

@jtbg
jtbg / mls_flair_karma_2016-06-20.csv
Created June 21, 2016 21:08
Comment & link karma by flair class for r/MLS
css_class Num_users MLS_link_karma MLS_comment_karma
no flair 15413 121501 347658
seattle-sounders 2922 83776 772429
portland-timbers 2032 64005 713940
sporting-kansas-city 1432 51292 412731
la-galaxy 1426 53550 497377
new-york-red-bulls 1310 92686 452030
orlando-city 1249 46653 259460
columbus-crew 1225 40562 264473
dc-united 1123 35497 290570
Minute (UTC) Frontpage r/Overwatch
22:00 53178 8711
22:01 52800 8814
22:02 53095 8839
22:03 52855 9315
22:04 52579 9582
22:05 52553 9348
22:06 52184 9247
22:07 52438 9446
22:08 52155 9264