(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Recommendations of unit types per media type:
Media | Recommended | Occasional use | Infrequent use | Not recommended |
---|---|---|---|---|
Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
{ | |
"name": "jekyll-starter-kit", | |
"version": "1.0.0", | |
"description": "jekyll, asset build using npm scripts", | |
"main": "src/scripts/main.js", | |
"scripts": { | |
"eslint:dist": "eslint src/scripts/*.js", | |
"eslint": "npm run eslint:dist", | |
"uglify:dist": "uglify -s src/scripts/*.js -o dist/scripts/main.min.js", | |
"uglify:_site": "uglify -s src/scripts/*.js -o _site/dist/scripts/main.min.js", |
var accounts = [ | |
{ name: 'James Brown', msgCount: 123 }, | |
{ name: 'Stevie Wonder', msgCount: 22 }, | |
{ name: 'Sly Stone', msgCount: 16 }, | |
{ name: 'Otis Redding', msgCount: 300 } // Otis has the most messages | |
]; | |
// get sum of msgCount prop across all objects in array | |
var msgTotal = accounts.reduce(function(prev, cur) { | |
return prev + cur.msgCount; |
I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.
I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.
Chrome 51 has some pretty wild behaviour related to console.log
in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.
#! /bin/zsh --no-rcs --err-exit | |
export PATH=node_modules/.bin:$PATH | |
alias -g i=install | |
if (($+commands[pnpm])) then | |
local p=p | |
alias pnpm=npm npx=pnpx | |
# FIXME https://github.com/pnpm/pnpm/issues/1360 | |
npm config get -g global-dir | read |
Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.
I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.
If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.
Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
{ | |
"name": "jekyll-theme-plus", | |
"version": "1.0.0", | |
"description": "Advanced Jekyll theme", | |
"repository": { | |
"type": "git", | |
"url": "https://github.com/ivanchromjak/jekyll-theme-plus.git" | |
}, | |
"author": "Ivan Chromjak", | |
"license": "MIT", |