Skip to content

Instantly share code, notes, and snippets.

View codeluggage's full-sized avatar
🌏
Our (only!) planet is on fire. How can we help? Help!

Matias Forbord codeluggage

🌏
Our (only!) planet is on fire. How can we help? Help!
View GitHub Profile
functions:
hello:
environment: ${self:custom}
handler: handler.hello
events:
- http: ANY /
- http: ANY {proxy+}
@codeluggage
codeluggage / es6ToNightwatch.js
Last active October 22, 2021 04:47
Convert ES6 classes to basic Javascript objects to export for Nightwatch
'use strict';
/*
* The purpose of this function is to convert an ES6 class to either:
* 1) A test suite if it has "tests" as a property
* 2) A page object with optional "elements", "commands" and "url"
* @param es6Class The actual class object (not instance of the class) to convert
*/
module.exports = function(es6Class) {
let properties = Object.getOwnPropertyNames(es6Class.prototype);
@codeluggage
codeluggage / r.dendron.macros.md
Last active May 2, 2022 02:31
How to use shortcuts to work with markdown checkboxes for Dendron

To quickly work with checkboxes in Dendron, you can use these settings and shortcuts.

Setup

  1. Install the most up to date macros extension: https://github.com/ctf0/macros
  2. Install the Vim extension: https://github.com/VSCodeVim/Vim
  3. Add the keybindings below to your keybindings.json
  4. Add the macro definitions below to your settings.json
@codeluggage
codeluggage / .zshrc
Last active November 19, 2022 23:04
Somewhat sensible .zshrc for those using Oh-My-Zsh, iTerm2, Android Studio, Xcode, and general git work.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"