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 / _.md
Created February 16, 2013 13:38
Simple(?) Horizontal Stacked Bar Charts
@gelicia
gelicia / _.md
Last active August 8, 2021 17:18
Minneapolis wtf
@gelicia
gelicia / _.md
Created July 10, 2013 17:21
helping OrenBochman
@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