Skip to content

Instantly share code, notes, and snippets.

View tablatronix's full-sized avatar
🎄

Shawn A tablatronix

🎄
View GitHub Profile
@tablatronix
tablatronix / user48736353001_discog_2015
Last active August 29, 2015 14:14
user48736353001 discography 2015-soundcloud / fly away babies, good luck!
-1|status|tag|no|name|duration|about
112||afx||luke vibert spiral staircase [future music competition] [afx remix]|5:05
111||afx|19|[Slo]w early morning clissold sunrise|4:49|
110||afx|7|lsb [slo]|4:05|
109||afx|4|Red Calx[slo]|5:41|
108||Art|2|Dual Acid Ab6|4:36|94 ish, fuk knows
107||afx|5|How To Science 2 Ab6|4:51|
106||afx|4|how to science ab6|3:47|
105||afx|3|hollow alias ab6|2:14|ab6
@iamatypeofwalrus
iamatypeofwalrus / generate_ctags.md
Last active February 11, 2019 10:17
Generate ctags for Atom (or for any other reason) on Mac os X

Why?

Atom can automagically picks up any tags file in your current directory which enables you to:

  • shift+cmd+r search for any function in your project
  • alt+cmd+down GoTo a function declaration

How

Get brew if you don't already have it. Then:

brew install ctags

@postspectacular
postspectacular / hsv2rgb.ino
Last active January 4, 2025 00:13
Super compact HSV/RGB conversions for Arduino/C
int redPin = 6;
int greenPin = 5;
int bluePin = 9;
float col[3];
float hue = 0.0;
void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
@rmondello
rmondello / gist:b933231b1fcc83a7db0b
Last active February 5, 2025 03:03
Exporting (iCloud) Keychain and Safari credentials to a CSV file

Exporting (iCloud) Keychain and Safari credentials to a CSV file

Update (October 2021)

Exporting password + one-time code data from iCloud Keychain is now officially supported in macOS Monterey and Safari 15 (for Monterey, Big Sur, and Catalina). You can access it in the Password Manager’s “gear” icon (System Preferences > Passwords on Monterey, and Safari > Passwords everywhere else), or via the File > Export > Passwords... menu item). You shouldn't need to hack up your own exporter anymore.

Original, Obsolete Content (2014)

After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.

@kasperkamperman
kasperkamperman / gammacompare.ino
Last active January 10, 2018 16:05
Gamme curve compare with FastLED
// Gamma table HexaWS2811 placed at the bottom of the code
// dim_curve placed at the bottom of the code
extern const uint8_t gammaTable[];
extern const uint8_t dim_curve[];
#include "FastLED.h"
#define NUM_LEDS 5
#define DATA_PIN 11
@gayanhewa
gayanhewa / signature.php
Created September 24, 2014 04:25
HMAC + Sha256 hashed API Auth - This snippet implements the logic behing https://github.com/philipbrown/signplz
<?php
/**
* This snippet implements the logic behing https://github.com/philipbrown/signplz , simply to explain the functionality of generating the auth signature
* for non-php programmers so that they can authenticate with the API without a problem.
**/
$api_key = "key";
$api_sec = "sec";
$url = "http://abc.com/api/test";
@kadimi
kadimi / arabic_numerals.php
Last active December 26, 2021 08:13
Convert numbers in Arabic
<?php
/**
* Converts numbers in string from western to eastern Arabic numerals.
*
* @param string $str Arbitrary text
* @return string Text with western Arabic numerals converted into eastern Arabic numerals.
*/
function arabic_w2e($str) {
$arabic_eastern = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩');
@asheeshr
asheeshr / ardprintf.c
Last active January 11, 2024 16:37
A printf function for serial communication from Arduino boards
/*
This code should be pasted within the files where this function is needed.
This function will not create any code conflicts.
The function call is similar to printf: ardprintf("Test %d %s", 25, "string");
To print the '%' character, use '%%'
This code was first posted on http://arduino.stackexchange.com/a/201
*/
@gubi
gubi / fa-bounce.css
Last active February 21, 2025 14:02
Pulse animation for FontAwesome icons
.fa-bounce {
display: inline-block;
position: relative;
-moz-animation: bounce 1s infinite linear;
-o-animation: bounce 1s infinite linear;
-webkit-animation: bounce 1s infinite linear;
animation: bounce 1s infinite linear;
}
@-webkit-keyframes bounce {
# Thanks to this post:
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x
$ brew install cabextract
$ cd ~/Downloads
$ mkdir consolas
$ cd consolas
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
$ cabextract PowerPointViewer.exe
$ cabextract ppviewer.cab