This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert').strict; | |
const readline = require('readline'); | |
const TOKEN_TYPES = { | |
INT: 'INT', | |
PLUS: 'PLUS', | |
MINUS: 'MINUS', | |
MUL: 'MUL', | |
DIV: 'DIV', | |
LPAREN: 'LPAREN', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ynab = require("ynab"); | |
const ynabAPI = new ynab.API(process.env.YNAB_TOKEN); | |
const adMaioraBudgetId = process.env.BUDGET_ID; | |
const monoDebitAccountId = process.env.MONO_DEBIT_ACCOUNT_ID; | |
module.exports.handler = (event, context, callback) => { | |
const body = JSON.parse(event.body); | |
console.log('Event body: ', body); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isEven(n) { | |
return n % 2 === 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while : | |
do | |
for (( i=1; i <= 45; i++ )) | |
do | |
clear | |
echo $((46-i)) "minutes left" | |
sleep 1m | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cvlc https://coderadio-admin.freecodecamp.org/public/coderadio/playlist/pls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
// path to lambda function | |
const getAccountDetails = require('../get-account-details/src/index'); | |
const app = express(); | |
app.use(express.json()); | |
app.use(express.urlencoded({ extended: true })); | |
app.post('/', async (req, res) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"editor.fontFamily": "Hasklig, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.minimap.enabled": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Path to startup folder Windows 10 = C:\Users\${user.name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
DllCall("SwapMouseButton",int,true) ;> left hand | |
; DllCall("SwapMouseButton",int,false) ;> right hand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Path to startup folder Windows 10 = C:\Users\${user.name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
; This file by Alan J. Hogan | |
; https://alanhogan.com/tips/swap-left-alt-and-ctrl-keys-in-windows | |
; Switches the left Control and Alt keys. | |
LCtrl::Alt | |
LAlt::Ctrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Path to startup folder Windows 10 = C:\Users\${user.name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; Type this abbreviation and hit Tab | |
::br:: |
NewerOlder