(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.
I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.
TL;DR: Here's the solution I ended up with: https://github.com/filamentgroup/loadCSS/
For async JavaScript file requests, we have the async
attribute to make this easy, but CSS file requests have no similar standard mechanism (at least, none that will still apply the CSS after loading - here are some async CSS loading conditions that do apply when CSS is inapplicable to media: https://gist.github.com/igrigorik/2935269#file-notes-md ).
Seems there are a couple ways to load and apply a CSS file in a non-blocking manner:
Yet another framework syndrome
Name | Date | URL | Stars |
---|---|---|---|
Jake | April 2010 | https://github.com/mde/jake | 1000 |
Brunch | January 2011 | http://brunch.io/ | 3882 |
/** | |
* This file/module contains all configuration for the build process. | |
*/ | |
/** | |
* Load requires and directory resources | |
*/ | |
var join = require('path').join, | |
bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})), | |
bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'), |
class RottenGzipFile(object): | |
""" | |
Standard library GzipFile replacement, since it has several issues with | |
files containing extra data after compressed stream. | |
See http://stackoverflow.com/questions/4928560/how-can-i-work-with-gzip-files-which-contain-extra-data | |
for details. | |
This class does not implement everything usually included in file-like | |
objects. |
# CleverStack | |
## Angular Seed | |
### YAAS (Yet Another Angular Seed) | |
While know about the existence of `ng-boilerplate`, the `angular-app` repo on Github, or even Yeoman and it's `angular-generator`, none of those really fit the bill when it comes to structuring a medium to large application as it often is the case here at Clevertech. | |
This is not yet another angular seed: this is the collaborative effort of open source enthusiasts to solve the most of the problems in AngularJS development. Yes, we took the liberty of adding a bit of a bleak packaging but that allows us for dead-easy installing, upgrading and extending. | |
Let's dive into it. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/python | |
# | |
# Requires libevent, greenlet, gevent and pyzmq. | |
# | |
# Exemplar run: | |
# | |
# $ ./poblano_backend.py | |
# GitHub handled by worker 1: OK | |
# Jenkins handled by worker 2: OK | |
# Review Board handled by worker 1: OK |
console.reset = function () { | |
return process.stdout.write('\033c'); | |
} |