Skip to content

Instantly share code, notes, and snippets.

@ryfloyd
ryfloyd / google_chrome_update_checker.py
Last active March 13, 2024 13:39 — forked from pudquick/google_chrome_update_checker.py
Basic concept for querying for Google Chrome updates based on current Chrome version/OS/arch
#!/usr/bin/python
import xml.etree.ElementTree as ET
import requests
import uuid
params = {'cup2hreq': 'foo', 'cup2key': 'bar'}
platform = 'mac'
os_version = '14.2'
@ryfloyd
ryfloyd / gist:e06a5f3c3dc5b134ae709eed08d032f8
Last active December 28, 2020 05:27
Run TensorFlow Lite micro_speech example on Arduino Nano 33 BLE (Mac OS X 11.1 Big Sur)
Download Arduino IDE
Launch Arduino IDE
Connect Nano 33 BLE, Arduino should prompt to install the Nano Board, if not:
From within Arduino IDE -> Tools -> Boards - > Boards Manager -> Search for "Nano 33 BLE" and Install
From within Arduino IDE -> Tools -> Manage Libraries -> Search for "Arduino_TensorFlowLite" and Install
File -> Examples -> Arduino_TensorFlowLite -> micro_speech
Open micro_speech.h
## Skip...not required anymore
# download some missing CMSIS files...
import stripe
stripe.api_key = settings.STRIPE_SECRET_KEY
token = stripe.Token.create(card={'brand': 'Visa', 'exp_month': 9, 'exp_year': 2018, 'number': '4000000000000101', 'address_zip': '78704', 'cvc': 123})
"""
<Token token id=tok_1BJQZwA7BWdKIiAU4I8pz9j9 at 0x1135b04f0> JSON: {
"card": {
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,

Keybase proof

I hereby claim:

  • I am ryfloyd on github.
  • I am ryanfloyd (https://keybase.io/ryanfloyd) on keybase.
  • I have a public key ASAFEbC-3FB8kwjLThnAmVfpo8a8TWk9QctelzcnBTliigo

To claim this, I am signing this object:

@ryfloyd
ryfloyd / IPredicate.java
Last active December 25, 2015 02:29
Airplane Payload Solution
public interface IPredicate<T> {
boolean apply(T type, int p, int w);
}