Skip to content

Instantly share code, notes, and snippets.

@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)

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 / 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;
@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%);
}
<!DOCTYPE html>
<html>
<head>
<title>beep</title>
<meta charset="utf-8" />
<style>
body {
margin: 20px;
background: #0000FF;
@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,
@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 / 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 / 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 / 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"