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
/* jshint devel: true */ | |
/* global angular */ | |
'use strict'; | |
/* | |
Requres: https://github.com/dawsonloudon/VideoPlayer | |
Usage: <videoplayer src="videofile"></videoplayer> | |
Don't put ".mp4" or ".webm" in the src atr above | |
*/ |
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
--Hammerspoon config to replace Cinch & Size-up (Microsoft Windows style) window management for free | |
--Windows Vista/7's Areo Snap on MacOS | |
--By Jayden Pearse (spartanatreyu) | |
------------------------------------------------------------------- | |
--Options, feel free to edit these: | |
------------------------------------------------------------------- | |
--Set this to true to snap windows by dragging them to the edge of your screen | |
enable_window_snapping_with_mouse = true |
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
{ | |
// Theme customisation | |
"workbench.colorTheme": "Monokai", | |
"editor.showFoldingControls": "always", | |
"editor.cursorSurroundingLines": 5, | |
"editor.renderControlCharacters": true, | |
"editor.renderWhitespace": "all", //if you want it, check how it looks with rainbow-indent | |
"trailing-spaces.includeEmptyLines": false, | |
"trailing-spaces.highlightCurrentLine": false, | |
// "editor.guides.bracketPairs": "active", // Is only worth setting to true when files use one open bracket per indentation level |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
// Close window if trying to close a tab and there are not tabs left to close | |
{ | |
"key": "cmd+w", | |
"command": "workbench.action.closeWindow", | |
"when": "!editorIsOpen && !multipleEditorGroups" | |
}, | |
// Overwrite default tab switching shortcuts: | |
{ |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"jaydens_disabled_rules_to_be_experimented_with_later": [ |
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
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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
{ | |
// Place your snippets for typescript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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
import { Capacitor } from '@capacitor/core'; | |
import { Filesystem, Directory, Encoding, WriteFileResult } from '@capacitor/filesystem'; | |
// Basic file I/O functions | |
export const writeFile = async (path: string = 'secrets/text.txt', dataToWrite: string = 'hello world', isBinary: boolean = true) => { | |
return Filesystem.writeFile({ | |
path: path, | |
data: dataToWrite, | |
directory: Directory.Data, |
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
local wezterm = require 'wezterm' | |
local config = wezterm.config_builder() | |
----------------------------------------- | |
-- Terminal Controls -- | |
----------------------------------------- | |
-- Mac/Emacs style Cursor jumping | |
local action = wezterm.action | |
config.keys = { |
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
Description: COLMAK-DH with programmer friendly shortcuts and QWERTY fallback layer | |
Keyboard (split + ortholinear): https://www.zsa.io/moonlander | |
QMK Firmware: https://configure.zsa.io/moonlander/layouts/Mvngb/latest/0 | |
Printable cheatsheet: https://codepen.io/spartanatreyu/pen/XWBeyRd | |
Switches: Gazzew Boba U4 Silent Tactile (Clear) |
OlderNewer