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
| [ | |
| { | |
| "emotion": "Anger", | |
| "children": [ | |
| { | |
| "emotion": "Hurt", | |
| "children": [ | |
| { | |
| "emotion": "Embarrassed" | |
| }, |
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
| Array.prototype.toDictionary = function (keySelector, valueSelector = null) { | |
| const dict = this.reduce((dict, item) => { | |
| const key = keySelector(item); | |
| dict[key] = valueSelector ? valueSelector(item) : item; | |
| return dict; | |
| }, {}); | |
| // Return an object that is both iterable and accessible by key | |
| return { | |
| ...dict, |
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 _0x4674(){var _0x41f5d0=['855892UhQbNz','fixed','bottom','src','width','-45rem','transition-duration','t-shite','https://s3.eu-west-2.amazonaws.com/t-shite.com/TOASTY.wav','11781374AANdIk','587795AnNezx','214516mFESTt','3UIonJE','587412qHkKjh','source','style','getElementsByTagName','position','setAttribute','transition-property','3eQbNrZ','10vw','createElement','https://s3.eu-west-2.amazonaws.com/t-shite.com/T_NoBackground.png','appendChild','17253DMhsww','height','0.2s','240kTeqyE','body','45rem','img','48YbNeVC','35rem','1710738BcqlcJ'];_0x4674=function(){return _0x41f5d0;};return _0x4674();}var _0x25b0ee=_0x2a9d;(function(_0xcdd3db,_0x47b60d){var _0x144ebe=_0x2a9d,_0x260f5a=_0xcdd3db();while(!![]){try{var _0x3cb1c7=-parseInt(_0x144ebe(0x12f))/0x1*(-parseInt(_0x144ebe(0x12e))/0x2)+parseInt(_0x144ebe(0x137))/0x3*(parseInt(_0x144ebe(0x146))/0x4)+parseInt(_0x144ebe(0x12d))/0x5+parseInt(_0x144ebe(0x145))/0x6+parseInt(_0x144ebe(0x130))/0x7*(parseInt(_0x144ebe(0x143))/0x8)+parseInt(_0x144ebe(0x13c))/0x9 |
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
| Object.dictionary = function(obj){ | |
| return Object.entries(obj).map(entry => { | |
| return { | |
| key: entry[0], | |
| value: entry[1] | |
| } | |
| }) | |
| } |
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
| [alias] | |
| lg = lg1 | |
| lg1 = lg1-specific --all | |
| lg2 = lg2-specific --all | |
| lg3 = lg3-specific --all | |
| lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' | |
| lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' | |
| lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' |
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 flatten = (routes) => { | |
| return routes.reduce((acc, r) => { | |
| if(r.childRoutes && r.childRoutes.length) { | |
| acc = acc.concat(flatten(r.childRoutes)); | |
| } else { | |
| acc.push(r); | |
| } | |
| return acc; | |
| }, []) |
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 findTopPostElement(el){ | |
| if(isTopPostElement(el)){ | |
| return el; | |
| } | |
| else{ | |
| return findTopPostElement(el.parentElement); | |
| } | |
| } | |
| function isTopPostElement(el){ |
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
| [].forEach.call(window.$$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) |
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
| javascript:[].forEach.call(window.$$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) |
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
| //This script makes some assumptions | |
| //1. You tag the work items in your commits e.g. #1234 - Fixed bug | |
| //2. That all 'live' environments will have the same name | |
| //https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-6.1#api-and-tfs-version-mapping | |
| const apiVersion = "4.1-preview" | |
| const serverUrl = "http://serverurlhere:8080" // | |
| const projectList = ["Some_Frontend_Project","Some_Backend_Project"]; | |
| const liveEnvironmentName = "Live" |
NewerOlder