Skip to content

Instantly share code, notes, and snippets.

View aaronamm's full-sized avatar

aaronamm aaronamm

View GitHub Profile
@aaronamm
aaronamm / pause_between_each_track.lua
Last active April 8, 2022 12:07
Lua script to pause between each track in seconds for Rockbox DAP
-- This script adjusted from https://forums.rockbox.org/index.php/topic,54047.0.html.
-- Credit to Bilgus
require("actions")
require("settings")
local pauseBetweenEachTrackInSeconds = 5
-- Functions for reading / writing settings
local var = {offset = 1, size = 2, type = 3, fields = 3}
@aaronamm
aaronamm / index.js
Last active December 15, 2021 15:32
Update PDF title (meta data)
/*
To run the project:
yarn install
node index.js
*/
import { PDFDocument } from 'pdf-lib';
import { promises } from 'fs';
import { parse } from 'path';
@aaronamm
aaronamm / web.config
Created April 4, 2021 05:21 — forked from davidebbo/web.config
Default web.config used for node.js apps on Azure Web Apps
<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->
<configuration>
<system.webServer>
@aaronamm
aaronamm / bootstrap-4-sass-mixins-cheat-sheet.scss
Created June 25, 2019 00:45 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/v4-dev/scss/mixins
/* -------------------------------------------------------------------------- */
// Grid variables
$grid-columns: 12 !default;
$grid-gutter-width: 30px !default;
@aaronamm
aaronamm / NERDTree.mkd
Created January 31, 2019 14:42 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@aaronamm
aaronamm / Program.cs
Created November 7, 2018 14:22
Read and write a text file with Netduino IoT
using Microsoft.SPOT;
using System.IO;
using Microsoft.SPOT.IO;
using System.Text;
using System;
using NetMf.CommonExtensions;
namespace NetduinoReadWriteFile
{
public class Program
@aaronamm
aaronamm / Program.cs
Created October 30, 2018 06:49
Getting started Netduino
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
using System.Threading;
namespace NetduinoBlink
{
public class Program
{
const int SLEEP_IN_MILLISECONDS = 250;
@aaronamm
aaronamm / hello.cs
Created January 29, 2018 00:28
test
test