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
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Twitter (app store) |
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
| # Simple environment setup script | |
| # Install Applications | |
| choco install fiddler4 | |
| choco install notepadplusplus | |
| choco install visualstudiocode | |
| choco install greenshot | |
| choco install GoogleChrome | |
| choco install putty | |
| choco install ccleaner |
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
| # Simple environment setup script | |
| # Install Applications | |
| choco install fiddler4 | |
| choco install notepadplusplus | |
| choco install visualstudiocode | |
| choco install greenshot | |
| choco install GoogleChrome | |
| choco install putty | |
| choco install ccleaner |
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
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Twitter (app store) |
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 getCallLocation(stopStackFnName) { | |
| stopStackFnName = stopStackFnName || 'getCallLocation'; | |
| function getErrorObject() { | |
| try { | |
| throw new Error(''); | |
| } catch (err) { | |
| return err; | |
| } | |
| } |
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
| let nice = 'pizza'; | |
| let bad = { [ nice ]: 'lazagna' }; | |
| console.log(bad); | |
| // { pizza: "lazagna" } |
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
| curl -X GET \ | |
| 'https://www.lens.org/lens/patent/US_2018_0112244_A1/sequences/download?si=1' \ | |
| -H 'Accept: */*' \ | |
| -H 'Cache-Control: no-cache' \ | |
| -H 'Connection: keep-alive' \ | |
| -H 'Host: www.lens.org' \ | |
| -H 'Postman-Token: 28a6176c-d3e0-4ec1-8b1f-e7f3b9fe53db,5eb25f4d-7d60-436c-a083-49c56c7e6eaa' \ | |
| -H 'User-Agent: PostmanRuntime/7.15.0' \ | |
| -H 'accept-encoding: gzip, deflate' \ | |
| -H 'cache-control: no-cache' |
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
| // from: http://dis.4chan.org/read/prog/1295544154/170 | |
| function sleepSort(list, callback) { | |
| const result = []; | |
| list.forEach((i) => setTimeout(() => { | |
| result.push(i); | |
| if (result.length == list.length) { | |
| callback(result); | |
| } |
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 canEat(obj) { | |
| obj.eat = eat; | |
| obj.energy = 0; | |
| function eat(energy) { | |
| if (!this) { return; } | |
| this.energy = this.energy || 0; | |
| this.energy += energy; |
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:(function() { $('.box-item').each(function(){ let qElm = $(this); let boxWidth = this.clientWidth; let imgWidth = qElm.find('img')[0].clientWidth; let boxHeight = this.clientHeight; let imgHeight = qElm.find('img')[0].clientHeight; let hSpace = (boxHeight - imgHeight) / 2; let wSpace = (boxWidth - imgWidth) / 2; let name = $.trim(qElm.next().find('h3').text()); qElm.append(`<div style="position: absolute;bottom: ${hSpace + 5}px;left: ${wSpace}px;right: ${wSpace}px;color: white;display: flex;align-items: center;text-align: center;justify-content: center;background: rgba(0, 0, 0, 0.5)">${name}</div>`); });})() |