Skip to content

Instantly share code, notes, and snippets.

@Arty2
Arty2 / custom-accent.css
Last active April 7, 2020 16:04
Firefox CSS to change the accent color on top of tabs. Use with userChrome.css
/*
1. Navigate to `%APPDATA%\Mozilla\Firefox\Profiles ...` or locate the exact directory at `about:profiles`
2. Create a folder named `chrome` then create a file named userChrome.css inside it and paste this code
3. If userChrome.css doesn’t seem to work, open `about:config` and set `toolkit.legacyUserProfileCustomizations.stylesheets=true`
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tab-line[selected="true"] {
background-color : #841ebe;
@Arty2
Arty2 / thin-scrollbars.css
Last active September 10, 2019 20:26
User Style for Firefox that replaces all scrollbards with their thin equivalent. To be used with Stylus or similar extention.
* {
scrollbar-color: rebeccapurple transparent; /* ← use a color that matches your Firefox of Windows 10 color-scheme */
scrollbar-width: thin;
}
@Arty2
Arty2 / airtable-dark-theme.css
Created August 29, 2019 16:20
User Style for airtable.com that introduces a Dark theme and other visual tweaks. To be used with Stylus or similar extention
/*
Makes text a bit blurry due to ClearType being disabled when CSS Filters are used. Should probably use a less *naive* way.
*/
#hyperbaseContainer {
filter: invert(100%);
}
#hyperbaseContainer img,
#hyperbaseContainer button { /* revert images back to normal */
@Arty2
Arty2 / simplenote-dark-theme.css
Last active April 11, 2019 12:12
User Style for app.simplenote.com that introduces a Dark theme and other visual tweaks. To be used with Stylus or similar extention
::-moz-selection { background: #000; }
::selection { background: #000; }
:not(.published-wrap) > .wrapper > .app {
background: #222;
}
.wrapper {
height: 100vh;
}
@Arty2
Arty2 / directory-tree.bat
Created November 29, 2018 13:33
Createa txt file with the current directory (folder) tree-like structure of subdirectories - Windows executable script
@echo off
powershell -command "tree > directory-tree.txt"
@Arty2
Arty2 / pulsedetect_07.ino
Created August 8, 2018 15:37
Arduino sketch: Pulse sensor by means of a photoresistor • Breathing sensor by means of resistance sensor fabric
//pins
const int led = 13; //calibration LED
const int vibrator = 12;
const int buzzer = 11;
const int pulseSensor = A0; //LDR
const int breathSensor = A1; //resistive fabric
//pulse sensor variables
int pulseMin = 1023;
int pulseMax = 0;
@Arty2
Arty2 / maxwell_render-folder.js
Last active May 13, 2018 10:50
Script for Maxwell Render: render all the MXS files located in the folder 'inputFolder', including its children
// Script for Maxwell Render: render all the MXS files located in the folder 'inputFolder', including its children
var inputFolder = 'C:/_queue';
var outputFolder = 'C:/_output';
var engineVersion = Maxwell.getEngineVersion();
var mxsCount = FileManager.getNumberOfFilesInBranch( inputFolder, '*.mxs' );
var mxsList = FileManager.getFilesInBranch( inputFolder, '*.mxs' );
// Connect event
RenderEvents['renderFinished()'].connect(renderHasFinished);
var i = 0;
@Arty2
Arty2 / delete_backups_executable.bat
Created May 11, 2018 20:29
Cleanup utility to delete autosaves and backups by software commonly used in architecture.
@echo off
setlocal
:PROMPT
SET /P CONFIRM=Do you want to delete all ^
Sketchup : .skb, AutoSave_, Backup*.layout ^
AutoCAD : .bak, .dwl, .dwl2, .log, .err ^
Photoshop : .tmp ^
@Arty2
Arty2 / dropbox-paper-dark.css
Last active April 6, 2020 07:50
User Style for Dropbox Paper that introduces a simple Dark theme. To be used with Stylus or similar extention.
/*
Obsolete since Dropbox Paper introduced a native Dark theme.
*/
::-moz-selection { background: #000; }
::selection { background: #000; }
body,
.ace-editor,
.hp-sidebar-container,
<!DOCTYPE html>
<html>
<head>
<title>beep</title>
<meta charset="utf-8" />
<style>
body {
margin: 20px;
background: #0000FF;