Most of the weight comes from images. The average website (Alexa top 1M) contains over 1.4 MB of image data: http://httparchive.org/interesting.php Be sure to pick the most suitable format and to optimize your images.…
Those lines are showing up because the old algorithm can't produce all possible values in the 0-1 range. 32 bits of internal state simply aren't enough for that. The problem is highlighted by the images in this article:…
You can write your Angular 2 application code in ES5, ES6, TypeScript, Dart, or to-JS languages like CoffeeScript. TypeScript is pretty popular and it does work really well. Writing larger applications in a team is much…
> Want to bang up a quick solution, as in MVP? Use bare-bones Javascript Actually, adding the bare minimum of type annotations (fields & function signatures) and type casts (e.g. casting whatever you get from…
Edge 13 does support generators. http://kangax.github.io/compat-table/es6/
https://quixdb.github.io/squash-benchmark/
> Research found that the number one cause of errors in learning Python was its case-sensitivity You don't make that kind of error in other case-sensitive languages which offer better tooling. E.g. you start writing…
Atom and VS Code are built on top of Electron. http://electron.atom.io/
I'm quite happy with VS Code and this Markdown CSS theme: https://github.com/mahonnaise/vs-code-markdown-theme The automatic table formatting was pretty cool though (even if it's purely cosmetic).
The timing of the beam racing down the screen is used by the more modern guns which were used by the SNES, PlayStation, or the Dreamcast. So, it's really not much of a "myth". Most light guns worked that way. The zapper…
> Any major complaints from users? AltGr is still broken. The problem has been known for almost 2 years and there are about a hundred duplicates. https://github.com/atom/atom-keymap/issues/35 If you aren't using an US…
That's string interpolation. That line writes either "00" or "01". It's essentially the same as `'0' + state`. 'x: $x, y: $y' is a lot easier to type than: 'x: ' + x + ', y: ' + y I actually had to triple check that…
Dart: import 'dart:async'; import 'dart:io'; main() { var file = new File('/sys/class/leds/beaglebone:green:usr0/brightness'); var state = 0; new Timer.periodic(new Duration(seconds: 2), (_) { state = 1 - state;…
The reduce one needs an initial value of 0 for that to work. Then both versions will return 0 if the array is empty. array.reduce((a, b) => a + b, 0);
function sum(array) { return array.reduce((a, b) => a + b); } With a loop: function sum(array) { let acc = 0; for(let val of array) { acc += val; } return acc; }
> Web fonts done properly don't require JavaScript. NoScript blocks fonts, video, audio, and JavaScript.
As a NoScript user, I rarely see web fonts and I prefer it this way. The text shows up instantaneously and the font will look great and be perfectly readable. Most web fonts don't look that nice on Windows. Windows…
Safari 9 has the lowest score on HTML5test and the ES6 compat table. To make matters worse, Safari 9 isn't even out yet.
Non-standard: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende...
Taking screenshots of the full page or individual elements was also possible before via Tools -> Web Developer -> Developer Toolbar (Shift + F2)... and then using the `screenshot --selector ...` command. You also have…
In case anyone wonders about the `!+[1,]` bit: In modern browsers, `[1,]` is the same as `[1]`. If you coerce it to number, you get 1. (You get "1" if you toString it.) In IE8, `[1,]` is the same as creating an array…
As somone who doesn't like to configure and tweak stuff for hours, my favorite Markdown editor is VS Code. You only have to set "editor.wrappingColumn" to zero (viewport wrapping) and you're good to go. You can use…
Firefox's Brotli support is already done. Chrome's isn't. By the way, new features are generally created this way. They are added to browsers way before they are standardized. You see, convincing the other browser…
The keyboard handling seems a bit off. If you hold S and then press C, you'll stop moving backwards even though you're still holding S. I often thought I was running into a wall or some other obstacle while in fact my…
Fun game. Works really well. However, after playing 4 or 5 levels with Firefox 40 the sound got really stuttery and it never recovered.
Most of the weight comes from images. The average website (Alexa top 1M) contains over 1.4 MB of image data: http://httparchive.org/interesting.php Be sure to pick the most suitable format and to optimize your images.…
Those lines are showing up because the old algorithm can't produce all possible values in the 0-1 range. 32 bits of internal state simply aren't enough for that. The problem is highlighted by the images in this article:…
You can write your Angular 2 application code in ES5, ES6, TypeScript, Dart, or to-JS languages like CoffeeScript. TypeScript is pretty popular and it does work really well. Writing larger applications in a team is much…
> Want to bang up a quick solution, as in MVP? Use bare-bones Javascript Actually, adding the bare minimum of type annotations (fields & function signatures) and type casts (e.g. casting whatever you get from…
Edge 13 does support generators. http://kangax.github.io/compat-table/es6/
https://quixdb.github.io/squash-benchmark/
> Research found that the number one cause of errors in learning Python was its case-sensitivity You don't make that kind of error in other case-sensitive languages which offer better tooling. E.g. you start writing…
Atom and VS Code are built on top of Electron. http://electron.atom.io/
I'm quite happy with VS Code and this Markdown CSS theme: https://github.com/mahonnaise/vs-code-markdown-theme The automatic table formatting was pretty cool though (even if it's purely cosmetic).
The timing of the beam racing down the screen is used by the more modern guns which were used by the SNES, PlayStation, or the Dreamcast. So, it's really not much of a "myth". Most light guns worked that way. The zapper…
> Any major complaints from users? AltGr is still broken. The problem has been known for almost 2 years and there are about a hundred duplicates. https://github.com/atom/atom-keymap/issues/35 If you aren't using an US…
That's string interpolation. That line writes either "00" or "01". It's essentially the same as `'0' + state`. 'x: $x, y: $y' is a lot easier to type than: 'x: ' + x + ', y: ' + y I actually had to triple check that…
Dart: import 'dart:async'; import 'dart:io'; main() { var file = new File('/sys/class/leds/beaglebone:green:usr0/brightness'); var state = 0; new Timer.periodic(new Duration(seconds: 2), (_) { state = 1 - state;…
The reduce one needs an initial value of 0 for that to work. Then both versions will return 0 if the array is empty. array.reduce((a, b) => a + b, 0);
function sum(array) { return array.reduce((a, b) => a + b); } With a loop: function sum(array) { let acc = 0; for(let val of array) { acc += val; } return acc; }
> Web fonts done properly don't require JavaScript. NoScript blocks fonts, video, audio, and JavaScript.
As a NoScript user, I rarely see web fonts and I prefer it this way. The text shows up instantaneously and the font will look great and be perfectly readable. Most web fonts don't look that nice on Windows. Windows…
Safari 9 has the lowest score on HTML5test and the ES6 compat table. To make matters worse, Safari 9 isn't even out yet.
Non-standard: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende...
Taking screenshots of the full page or individual elements was also possible before via Tools -> Web Developer -> Developer Toolbar (Shift + F2)... and then using the `screenshot --selector ...` command. You also have…
In case anyone wonders about the `!+[1,]` bit: In modern browsers, `[1,]` is the same as `[1]`. If you coerce it to number, you get 1. (You get "1" if you toString it.) In IE8, `[1,]` is the same as creating an array…
As somone who doesn't like to configure and tweak stuff for hours, my favorite Markdown editor is VS Code. You only have to set "editor.wrappingColumn" to zero (viewport wrapping) and you're good to go. You can use…
Firefox's Brotli support is already done. Chrome's isn't. By the way, new features are generally created this way. They are added to browsers way before they are standardized. You see, convincing the other browser…
The keyboard handling seems a bit off. If you hold S and then press C, you'll stop moving backwards even though you're still holding S. I often thought I was running into a wall or some other obstacle while in fact my…
Fun game. Works really well. However, after playing 4 or 5 levels with Firefox 40 the sound got really stuttery and it never recovered.