Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /** | |
| * `Ember.MergedArray` is an array that observes multiple other arrays (called source arrays) for changes and includes | |
| * all items from all source arrays in an efficient way. | |
| * | |
| * Usage: | |
| * | |
| * ```javascript | |
| * var obj = Ember.Object.create({ | |
| * people: [ | |
| * { |
| $ = jQuery | |
| TIMEOUT = 20000 | |
| lastTime = (new Date()).getTime() | |
| setInterval -> | |
| currentTime = (new Date()).getTime() | |
| # If timeout was paused (ignoring small | |
| # variations) then trigger the 'wake' event | |
| if currentTime > (lastTime + TIMEOUT + 2000) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| (function () { | |
| // Implement debounce until backburner implements a proper debounce | |
| var debouncees = [], | |
| pop = Array.prototype.pop; | |
| var debounce = function (target, method /*, args, wait */) { | |
| var self = Ember.run.backburner, | |
| args = arguments, | |
| wait = pop.call(args), |
| In order for this to work you need ffmpeg. I tried with version 1.2.1. | |
| 1) Play the video you want to download in the browser | |
| 2) Inspect the video element on the page | |
| 3) Copy the video url from the page source (something like http://devstreaming.apple.com/videos/wwdc/2013/.../101/ref.mov) | |
| 4) In this url replace "ref.mov" with "iphone_c.m3u8" (for 960x540 resolution) or "atp.m3u8" if you want more (probably 720p?) | |
| 5) Execute `ffmpeg -y -i http://devstreaming.apple.com/videos/wwdc/2013/.../101/iphone_c.m3u8 output.mp4` | |
| 6) There is your video :) |
The Ember router is getting number of enhancements that will greatly enhance its power, reliability, predictability, and ability to handle asynchronous loading logic (so many abilities), particularly when used in conjunction with promises, though the API is friendly enough that a deep understanding of promises is not required for the simpler use cases.
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <title>a sketch</title> | |
| <script type="text/javascript" src="undermine.js"></script> | |
| </head> | |
| <body> | |
| <center> |
| /* | |
| * Partial applied functions in C | |
| * Leandro Pereira <leandro@tia.mat.br> | |
| */ | |
| #include <assert.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> |