| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
| function() { | |
| var lastHeapSize = null; | |
| var lastFrameTime = null; | |
| var runGame = function() { | |
| requestAnimationFrame(runGame); | |
| var frameTime = window.performance.now(); | |
| var heapSize = window.performance.memory.usedJSHeapSize; |
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.
In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.
To install ccache with [homebrew](http://mxcl.
| function heap_spray() { | |
| if (MEGS == 0 || R(2) == 0) return; | |
| if (!spray_str) { | |
| var spray_str = "ABCDABCD"; | |
| for (var i=0;i<21;i++) spray_str += spray_str; /* 16M */ | |
| } | |
| window.name = Math.random() + spray_str + Math.random(); |
| // Copyright 2019 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Basic p(r)olyfill for proposed feature | |
| // This defines no successor of empty arrays, so the range for prefix | |
| // [] or [[],[]] has no upper bound. | |
| // An alternate definition would preclude adding additional nesting, | |
| // so the range for prefix [] would have upper bound [[]] and the | |
| // range for prefix [[], []] would have upper bound [[], [[]]]. |
One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.
Most workflows make the following compromises:
-
Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the
secureflag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection. -
Use production SSL certificates locally. This is annoying
| # A simple Makefile alternative to using Grunt for your static asset compilation | |
| # | |
| ## Usage | |
| # | |
| # $ npm install | |
| # | |
| # And then you can run various commands: | |
| # | |
| # $ make # compile files that need compiling | |
| # $ make clean all # remove target files and recompile from scratch |
- http://requirebin.com?gist=maxogden/9576573
- http://requirebin.com?gist=hughsk/5941408
- http://requirebin.com?gist=hughsk/6031068
- http://requirebin.com?gist=maxogden/9576699
- http://requirebin.com?gist=maxogden/9576799
- http://requirebin.com?gist=maxogden/9576995
- http://requirebin.com?gist=maxogden/5953535&q=level
- http://requirebin.com?gist=maxogden/9425656
| # Basic | |
| Initial rendering takes ~25ms | |
| Delete first takes ~30ms | |
| Delete last takes ~15ms | |
| Add `background: red` to the second element and delete the first, you'll see that the second element is still red. What happened is that everything moved around. The reason is that React doesn’t do the matching properly. | |
| http://jsfiddle.net/vjeux/tXfDU/ |
Our major goal this week was cleanup: we're planning on moving our current work to the rust-lang repository in the next week or two, so cleanup was the order of the week.
Because Cargo uses the same design as git (many plumbing commands that are used by a smaller number of high-level porcelain commands), getting a standard way to write commands with limited boilerplate was a high priority to get done before we wrote too many commands. We wrote the first few commands by hand, then extracted out some useful abstractions.
A few weeks ago, I wrote a library named Hammer.rs that allows you to decode command-line flags into a struct.
extern crate hammer;