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
var outlook = require('outlook-updated'); | |
var queryParams = { | |
'$select': 'Subject,ReceivedDateTime ', | |
'$orderby': 'ReceivedDateTime desc', | |
'$top': 1 | |
}; | |
outlook.base.setApiEndpoint('https://outlook.office.com/api/v2.0'); | |
outlook.base.setAnchorMailbox(email); |
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
aws lambda update-fnction-configuration\ --function-name "TeST" \ --description $(date -u + "%Y-%m-%dT%H:%M:%M:%SZ") |
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
aws lambda update-fnction-configuration\ --function-name "TeST" \ --description $(date -u + "%Y-%m-%dT%H:%M:%M:%SZ") |
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 url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png |
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
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_map = '<leader>t' | |
let mapleader = "," | |
set wildignore+=*.o,*.obj,.git,*.swp,tmp,node_modules,*/vendor/**/*,*/public/**/* | |
syntax on |
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
============ | |
Git | |
============ | |
git status | |
git branch —all | |
git rebase -i HEAD~3 // Remove previous 3 commits | |
git push origin +master // Force push | |
git remote -v // List all remotes | |
git rm -r --cached node_modules // Untrack |
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 screenXY(obj){ | |
var vector = obj.clone(); | |
var windowWidth = window.innerWidth; | |
var minWidth = 1280; | |
if(windowWidth < minWidth) { | |
windowWidth = minWidth; | |
} |
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
//ES6 Examples | |
//ES6 Promises | |
function leFunction(){ | |
return new Promise( (resolve, reject) => { | |
if( (Math.random()*100 ) > 10) | |
resolve("ok"); |
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 MyCustomError(message) { | |
this.message = message; | |
this.name = "MyCustomError"; | |
Error.captureStackTrace(this, MyCustomError); | |
} | |
MyCustomError.prototype = Object.create(Error.prototype); | |
MyCustomError.prototype.constructor = MyCustomError; |
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
/// REVERSE ARRAY | |
var array = [1,2,3,4,5,6,7,8,9]; | |
var leftMark = 0; | |
var rightMark = array.length; | |
reverseArray(array,leftMark,rightMark); | |
function reverseArray(array, leftMark, rightMark){ |
NewerOlder