Skip to content

Instantly share code, notes, and snippets.

View gelicia's full-sized avatar
🕴️
Never logging off

Kristina gelicia

🕴️
Never logging off
View GitHub Profile
@gelicia
gelicia / claptrapeye.ino
Created March 24, 2019 18:10
claptrap eye
#include <FastLED.h>
#define LED_PIN 9
#define SENSOR_PIN 10
#define NUM_LEDS 3
#define LED_TYPE WS2812
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 100
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# 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
@gelicia
gelicia / slack_delete.rb
Last active September 28, 2018 12:58 — forked from jamescmartinez/slack_delete.rb
This Ruby script will bulk remove all Slack files older than 30 days. Just add your API token from https://api.slack.com/custom-integrations/legacy-tokens (See Legacy token generator) into the token quotes at the top of the file.
require 'net/http'
require 'json'
require 'uri'
@token = ''
def list_files
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,
@gelicia
gelicia / gist:8c8046b931e8937a809d1b1e136e63fa
Last active May 24, 2018 00:13
Rename all mp3s in a folder to 8.3 (Assumes max 999 mp3s). Done for https://learn.adafruit.com/adabox004/loading-music-onto-the-sd-card
count=1; for file in *.mp3; do filename=`printf 'TRACK%03d' $count`; mv "$file" "$filename.mp3"; ((count++)); done
@gelicia
gelicia / necklace.ino
Created April 21, 2018 20:39
necklace rainbow code
#include <FastLED.h>
#define LED_PIN 11
#define NUM_LEDS 2
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 100
uint8_t startIndex = 0;
#include <FastLED.h>
#define SENSOR_PIN 6
#define LED_PIN 3
#define NUM_LEDS 80
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 100
#include <FastLED.h>
#define SENSOR_PIN 6
#define LED_PIN 3
#define NUM_LEDS 15
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 100
@gelicia
gelicia / tccc21.ino
Last active April 20, 2017 03:00
tccc21 demo
// This #include statement was automatically added by the Particle IDE.
#include <neopixel.h>
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, D3, WS2812);
int red = 0;
int green = 0;
int blue = 0;
void setup() {
@gelicia
gelicia / gist:44c526900907ebf44cdae4cf7c6d985c
Last active December 15, 2016 03:06
Northstar MLS comment box and cost per sq ft additions. Only works on page load, gotta go in through main page for diff searches. EMOJIS WORK!!
// ==UserScript==
// @name mls additions
// @namespace nsmls
// @include http://matrix.northstarmls.com/*
// @version 1
// @grant none
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @require https://cdn.firebase.com/js/client/2.2.3/firebase.js
// ==/UserScript==