Skip to content

Instantly share code, notes, and snippets.

libbymiller

Block or report user

Report or block libbymiller

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View colour_learner_simple.ino
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <Adafruit_NeoPixel.h>
//based on https://learn.adafruit.com/chameleon-scarf/overview?view=all#code
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_RGB Pixels are wired for RGB bitstream
// NEO_GRB Pixels are wired for GRB bitstream
@libbymiller
libbymiller / removeRTs.py
Last active Jul 19, 2019
Remove RTs from all friends on twitter (makes things calmer)
View removeRTs.py
#https://stackoverflow.com/questions/9291122/api-twitter-api-attributeerror-module-object-has-no-attribute-api
#pip install python-twitter
import twitter
import time
api = twitter.Api(consumer_key='xxx',
consumer_secret='xxx',
access_token_key='xxx',
access_token_secret='xxx')
@libbymiller
libbymiller / classification-image-ft-audio.py
Created Apr 9, 2019
Tensorflow image classifier with audio
View classification-image-ft-audio.py
#!/usr/bin/python
# coding=UTF8
# Copyright 2015 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View start.sh
#!/usr/bin/env bash
# export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
# ^^^ this can cause barfing and isn't needed
# Choose a condition for running WiFi Connect according to your use case:
# 1. Is there a default gateway?
# ip route | grep default
@libbymiller
libbymiller / gist:e3511c16d1590467171d9e157c6218b1
Last active Jan 29, 2019
Slackwobbler - anywhere - updated to new ArduinoJson and improved by Tim
View gist:e3511c16d1590467171d9e157c6218b1
/**
Arduino Real-Time Slack Bot
Copyright (C) 2016, Uri Shaked.
Licensed under the MIT License
https://github.com/urish/arduino-slack-bot
Bodged to use WiFiManager and a servo by libby.
View classify_image_dial.py
#!/usr/bin/python
# coding=UTF8
# Copyright 2015 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@libbymiller
libbymiller / screenshot.py
Last active Apr 19, 2018
e-ink chromium waveshare
View screenshot.py
import epd7in5
import Image
import ImageDraw
import ImageFont
EPD_WIDTH = 640
EPD_HEIGHT = 384
def main():
epd = epd7in5.EPD()
View get_friends.py
import flickrapi
import urllib
import json
import random
import filecmp
import shutil
import os.path
from pprint import pprint
api_key = u'your api key'
View get_photo_metadata.py
import flickrapi
import urllib
import json
import random
import filecmp
import shutil
import os.path
from pprint import pprint
api_key = u'your api key'
View get_video_metadata.py
import flickrapi
import urllib
import json
import random
import filecmp
import shutil
import os.path
from pprint import pprint
api_key = u'your api key'
You can’t perform that action at this time.