- Install homebrew. Use this to install things like
- Install nvm. Use nvm for node.js management.
This file contains hidden or 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
// Assumes jQuery | |
var handlebarsTemplates = {}; | |
$(function(){ | |
// Compile all templates | |
$('script[type="text/x-handlebars-template"]').each(function(index, element) { | |
var $element = $(element), |
- Install Sublime Package Control
CMD+Shift+P
to launch Sublime's Command Palette. TypeInstall
, selectInstall Package
, then install the following:- SideBarEnhancements
- EditorConfig
- Markdown Preview
- SCSS
- Jade
- Sublime Package Decontrol might be useful.
This file contains hidden or 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
<script id="if_equals_example" type="text/x-handlebars-template"> | |
{{#if_equals objectType 'message'}} | |
<div class="message"> | |
Message | |
</div> | |
{{else}} | |
{{/if_equals}} | |
</script> |
This file contains hidden or 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 joinWithCommas (array){ | |
var result = ''; | |
$.each(array, function(index, label){ | |
if (index === 0){ | |
} else if (index < (array.length - 1)){ | |
result += ', '; | |
} else { | |
result += ' and '; | |
} | |
result += label; |
This file contains hidden or 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
/** | |
* Disable or enable focus on all focusable elements. Useful for proper keyboard navigation | |
* of slide-based interfaces where certain slides are hidden/shown based on user interaction. | |
* Assumes jQuery. | |
* | |
* @param {jQuery object} $el - jQuery object whose children will be toggled | |
* @param {bool} enable | |
* / | |
var toggleFocusableElements = function($el, enable){ | |
if (enable){ |
This file contains hidden or 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
{"lastUpload":"2021-11-24T16:47:18.411Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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 ObjectID = require('mongodb').ObjectID; | |
/** | |
* Returns the ObjectId of the object, taking into account | |
* whether the object is a populated Model, an ObjectId, or | |
* a string representation of an ObjectID. | |
* | |
* @param {MongooseModel|Object|String} input | |
* @return ObjectId | |
*/ |
This file contains hidden or 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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"meta": { | |
"version": "v1.0.0", | |
"canonical": "https://github.com/jsonresume/resume-schema/blob/v1.0.0/schema.json" | |
}, | |
"basics": { | |
"name": "Amit Kumar", | |
"label": "Software Engineering Leader", | |
"image": "", |
I hereby claim:
- I am amitkumar on github.
- I am amitkumar101 (https://keybase.io/amitkumar101) on keybase.
- I have a public key ASDUTsgzb0rFJMrzbkSKe4s6g9PwO-TyrIc0eJ_JEHZECAo
To claim this, I am signing this object: