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
... | |
<!-- Amazon S3 notebook storage --> | |
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --> | |
<property> | |
<name>zeppelin.notebook.s3.user</name> | |
<value>*FOLDER*</value> | |
<description>user name for s3 folder structure</description> | |
</property> | |
<property> |
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
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
const headlessUserAgent = await page.evaluate(() => navigator.userAgent); | |
const chromeUserAgent = headlessUserAgent.replace('HeadlessChrome', 'Chrome'); | |
await page.setUserAgent(chromeUserAgent); | |
await page.setExtraHTTPHeaders({ | |
'accept-language': 'en-US,en;q=0.8' | |
}); |
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
const PENDING = 0; | |
const FULFILLED = 1; | |
const REJECTED = 2; | |
class MyPromise { | |
constructor(fn) { | |
this.status = PENDING; | |
process.nextTick(() => { | |
fn(payload => { | |
this.status = FULFILLED; |
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
#!/bin/sh | |
# Sublime Text 3 install with Package Control | |
# http://simonewebdesign.it/blog/install-sublime-text-3-on-fedora-20/ | |
# Run this script with: | |
# $ curl LINK_TO_THIS_SCRIPT | sh | |
curl -o ~/st3.tar.bz2 http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3059_x64.tar.bz2 |