Skip to content

Instantly share code, notes, and snippets.

@Arty2
Arty2 / dropbox-paper-dark.css
Last active February 22, 2018 16:10
Dark Theme for Dropbox Paper. Use with userChrome.css or Stylus.
html {
background-color: #fff;
filter: invert(100%);
}
img, a, button {
filter: invert(100%);
}
@Arty2
Arty2 / ajfork2csv.php
Created September 10, 2017 00:51
A tool to convert AJ-Fork (Cutenews) data into a well-formated CSV for import into WordPress or other.
<?php
/*
2017-09-10
A tool to convert AJ-Fork (Cutenews) data into a well-formated CSV for import into WordPress or other.
*/
$input = file('data.txt');
$output = fopen('data.csv','w+');
$entries = 0;

Keybase proof

I hereby claim:

  • I am Arty2 on github.
  • I am heracles (https://keybase.io/heracles) on keybase.
  • I have a public key whose fingerprint is 3D2C 3A1E F678 41B3 CEE6 D4D8 EEEE A5F2 53A7 ACBE

To claim this, I am signing this object:

@Arty2
Arty2 / bettertypography.ahk
Last active January 3, 2024 17:37
AutoHotkey script for easier access to uncommon typographical characters.
#NoEnv
#persistent
#KeyHistory 0
;BETTER TYPOGRAPHY - shortcuts
$^!-:: SendUnicode("2014") ;— em dash
$^!+-:: SendUnicode("2013") ;– en dash
$^!.:: SendUnicode("2026") ;…
$^!+.:: SendUnicode("2022") ;•
$^+.:: SendUnicode("2E0C") ;⸌ “list character” (left raised omission bracket)
@Arty2
Arty2 / scrollbars.as.css
Last active May 24, 2024 06:06
Firefox CSS to style scrollbars to match Developer's theme. Use with userChrome.css
/*
scrollbars.as.css
based on https://userstyles.org/styles/128059/firefox-minimal-scrollbars
On Windows, save this file as: %APPDATA%\Mozilla\Firefox\Profiles ... /chrome/scrollbars.as.css
via: https://gist.github.com/Sporif/db6b3440fba0b1bcf5477afacf93f875
paste in userChrome.css in the /chrome folder mentioned above:
#PanelUI-menu-button {
-moz-binding: url(data:text/xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8IS0tIENvcHlyaWdodCAoYykgMjAxNyBIYWdnYWkgTnVjaGkNCkF2YWlsYWJsZSBmb3IgdXNlIHVuZGVyIHRoZSBNSVQgTGljZW5zZToNCmh0dHBzOi8vb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUDQogLS0+DQoNCjwhLS0gUnVuIHVzZXJDaHJvbWUuanMvdXNlckNocm9tZS54dWwgYW5kIC51Yy5qcy8udWMueHVsLy5jc3MgZmlsZXMgIC0tPg0KPGJpbmRpbmdzIHhtbG5zPSJodHRwOi8vd3d3Lm1vemlsbGEub3JnL3hibCI+DQogICAgPGJpbmRpbmcgaWQ9ImpzIiBleHRlbmRzPSJjaHJvbWU6Ly9nbG9iYWwvY29udGVudC9iaW5kaW5ncy90b29sYmFyYnV0dG9uLnhtbCNtZW51Ij4NCiAgICAgICAgPGltcGxlbWVudGF0aW9uPg0KICAgICAgICAgICAgPGNvbnN0cnVjdG9yPjwhW0NEQVRBWw0KICAgICAgICAgICAgICAgIGlmKHdpbmRvdy51c2VyQ2hyb21lSnNNb2QpIHJldHVybjsNCiAg
@Arty2
Arty2 / rotary_encoder.pde
Created February 22, 2016 03:00
Reading one Rotary Encoder from a Raspberry Pi with Processing 3
/*
Reading one Rotary Encoder from a Raspberry Pi
Translated from C to Processing by Heracles Papatheodorou
via http://theatticlight.net/posts/Reading-a-Rotary-Encoder-from-a-Raspberry-Pi/
GND MIDDLE encoder leg
GPIO22 GPIO23 LEFT and RIGHT legs
3.3V LEFT and RIGHT, splits to two 10k resistors for pull-up
@Arty2
Arty2 / knobs_to_serial.ino
Last active February 9, 2016 10:07
Arduino to Processing with Serial
int knob_0_pin = A0;
int knob_1_pin = A1;
int knob_2_pin = A2;
int knob_3_pin = A3;
int knob_4_pin = A4;
int knob_5_pin = A5;
void setup() {
Serial.begin(9600);
}
@Arty2
Arty2 / speed-dial_dev.css
Created December 27, 2015 19:33
Firefox CSS to style Speed Dials; Developer Edition. Use with Stylish or userChrome.css
/*
speed-dial_dev.css
use with Speed Dial plugin: https://addons.mozilla.org/en-US/firefox/addon/speed-dial
modified from: https://userstyles.org/users/254374
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url("chrome://speeddial/content/speeddial.xul"){
.sd-tab {
@Arty2
Arty2 / speed-dial.css
Created December 20, 2015 20:07
Firefox CSS to style Speed Dials. Use with Stylish or userChrome.css
/*
speed-dial.css
use with Speed Dial plugin: https://addons.mozilla.org/en-US/firefox/addon/speed-dial
modified from: https://userstyles.org/users/254374
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url("chrome://speeddial/content/speeddial.xul"){
.sd-tab {
@Arty2
Arty2 / private-tabs.css
Last active June 7, 2018 09:58
Firefox CSS to colorize private tabs. Use with Stylish or userChrome.css
/*
private-tabs.css
https://gist.github.com/Arty2/4658f49ca815980b0cb2
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#main-window[privatebrowsingmode=temporary] #urlbar {
border-color: #841ebe !important;
background-color: #841ebe !important;
color: #fff !important;