Skip to content

Instantly share code, notes, and snippets.

View makstaks's full-sized avatar

Harrison makstaks

  • Vancouver, British Columbia
View GitHub Profile
@makstaks
makstaks / keybindings.json
Created May 27, 2022 23:14
My VS Code Key Bindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "shift+cmd+m",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "editor.action.revealDefinition",
@makstaks
makstaks / gist:61c056278eb6b65239f41e2a51b8110b
Created June 27, 2018 03:43
Rails Generate Add Column Database Migration Example
rails generate migration add_column_name_to_table_name column_name:data_type
Example:
rails generate migration add_email_to_users email:string
@makstaks
makstaks / typescript-basic-types.ts
Last active August 29, 2017 03:28
Typescript Basic Types
/**
* Typescript 2.4
*
* Last updated: 2017-08-23
* Examples from: https://www.typescriptlang.org/docs/handbook/basic-types.html
* 1 Basic Types
* 1.1 Boolean
* 1.2 Number
* 1.3 String
* 1.4 Arrays
@makstaks
makstaks / security.js
Last active June 1, 2016 06:45
Using Crypto Node.js to encrypt data
var crypto = require('crypto');
// Test if I can only include code up to here
// Test to only include this snippet
// Test stops here