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
| 1. Install user CSS extension (or similar): https://chrome.google.com/webstore/detail/user-css/okpjlejfhacmgjkmknjhadmkdbcldfcb?hl=en | |
| 2. Apply the following style to news.ycombinator.com | |
| .c00, .c00 a:link { color:#000000; } | |
| .c5a, .c5a a:link, .c5a a:visited { color:#000000; } | |
| .c73, .c73 a:link, .c73 a:visited { color:#000000; } | |
| .c82, .c82 a:link, .c82 a:visited { color:#000000; } | |
| .c88, .c88 a:link, .c88 a:visited { color:#000000; } | |
| .c9c, .c9c a:link, .c9c a:visited { color:#000000; } | |
| .cae, .cae a:link, .cae a:visited { color:#000000; } |
Time Travel refers to the ability to record a tab and later replay it ([WebReplay][wrr]). The technology is useful for local development, where you might want to:
- pause and step forwards or backwards
- pause and rewind to a prior state
- rewind to the time a console message was logged
- rewind to the time an element had a certain style or layout
- rewind to the time a network asset loaded
Moved to Shopify/graphql-design-tutorial
If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech
This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next, right?
+ [email protected]
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 postUpdatedxkcdIfNecessary() { | |
| var properties = PropertiesService.getUserProperties(); | |
| var latestComic = JSON.parse(UrlFetchApp.fetch("http://xkcd.com/info.0.json").getContentText()); | |
| if (latestComic["num"] > properties.getProperty("lastComic")) { | |
| var title = latestComic["title"]; | |
| var imageURL = latestComic["img"]; | |
| var altText = latestComic["alt"]; | |
| var number = latestComic["num"]; |
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
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#337ab7, 6.5%)", | |
| "@brand-success": "#36f443", |
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 us re-create `Promise.all` | |
| `Promise.all` method returns a promise that resolves when all of the promises in the iterable argument have resolved, | |
| or rejects with the reason of the first passed promise that rejects. | |
| Read more about `Promise.all` on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all | |
| A basic example would be something like this: | |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
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 shouldStop(startTime) { | |
| return new Date().getTime() - startTime.getTime() > 300000; // 5 minutes | |
| } | |
| function archive() { | |
| var days = 7; // How old a message must be to be archived | |
| var startTime = new Date(); | |
| var date = new Date(); | |
| date.setDate(date.getDate() - days); | |
| var label = GmailApp.getUserLabelByName("[LABEL NAME]"); |
NewerOlder