Skip to content

Instantly share code, notes, and snippets.

@Arty2
Arty2 / directory-tree.bat
Created Nov 29, 2018
Createa txt file with the current directory (folder) tree-like structure of subdirectories - Windows executable script
View directory-tree.bat
@echo off
powershell -command "tree > directory-tree.txt"
@Arty2
Arty2 / pulsedetect_07.ino
Created Aug 8, 2018
Arduino sketch: Pulse sensor by means of a photoresistor • Breathing sensor by means of resistance sensor fabric
View pulsedetect_07.ino
//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
Script for Maxwell Render: render all the MXS files located in the folder 'inputFolder', including its children
View maxwell_render-folder.js
// 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
Cleanup utility to delete autosaves and backups by software commonly used in architecture.
View delete_backups_executable.bat
@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
Created May 10, 2018
User Style for Dropbox Paper that introduced a Dark theme. To be used with Stylus or similar extention.
View dropbox-paper-dark.css
html {
background-color: #fff;
filter: invert(100%);
}
img, a, button {
filter: invert(100%);
}
View beep.html
<!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 Feb 22, 2018
Dark Theme for Dropbox Paper. Use with userChrome.css or Stylus.
View dropbox-paper-dark.css
html {
background-color: #fff;
filter: invert(100%);
}
img, a, button {
filter: invert(100%);
}
@Arty2
Arty2 / ajfork2csv.php
Created Sep 10, 2017
A tool to convert AJ-Fork (Cutenews) data into a well-formated CSV for import into WordPress or other.
View ajfork2csv.php
<?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;
View keybase.md

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 Apr 17, 2017
AutoHotkey script for easier access to uncommon typographical characters.
View bettertypography.ahk
#KeyHistory 0
;BETTER TYPOGRAPHY
$^!-:: SendUnicode("2014") ;— em dash
$^!+-:: SendUnicode("2013") ;– en dash
$^!.:: SendUnicode("2026") ;
$^!+.:: SendUnicode("2022") ;
$^+.:: SendUnicode("2E0C") ;⸌ “list character” (left raised omission bracket)
$^!,:: SendUnicode("387") ;· ano teleia
$^+[:: SendUnicode("300C") ;
You can’t perform that action at this time.