This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FnVector = std::vector<std::function<void()>>; | |
usign FnWorkBroker = WorkBroker<FnVector::iterator>; | |
void worker(FnWorkBroker* broker) | |
{ | |
for (const auto& fn : *broker) { | |
fn(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Delegator<T> { | |
protected delegate: T; | |
getDelegate() { | |
return this.delegate; | |
} | |
setDelegate(delegate: T) { | |
this.delegate = delegate; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Graphics Feature Status | |
Canvas: Hardware accelerated | |
Flash: Hardware accelerated | |
Flash Stage3D: Hardware accelerated | |
Flash Stage3D Baseline profile: Hardware accelerated | |
Compositing: Hardware accelerated | |
Multiple Raster Threads: Enabled | |
Native GpuMemoryBuffers: Hardware accelerated | |
Rasterization: Software only. Hardware acceleration disabled | |
Video Decode: Hardware accelerated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<canvas width=256 height=256></canvas> | |
<img id=cat src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QB4RXhpZgAASUkqAAgAAAACADEBAgAHAAAAJgAAAGmHBAABAAAALgAAAAAAAABHb29nbGUAAAQAAJAHAAQAAAAwMjIwCZAHAAsAAABkAAAAAqAEAAEAAAAAAQAAA6AEAAEAAAAAAQAAAAAAAAoJkAEBqAEBwAEBAP/bAIQAAwICCw0LCgsKCgsKCg0ICggIDQoICAoKCgoICAgICAgICAgICAoICAoICAgKDQoKCAgNDQ0ICA0NCggNCAgKCAEDBAQGBQYKBgYKDQ0MDQ0NDQ8NDQ0NDAwMDQwNDAwMDQwMDAwMDAwNDAwMDAwNDAwMDAwMDA0MDAwMDA0MDAwM/8AAEQgBAAEAAwEiAAIRAQMRAf/EAB0AAAICAgMBAAAAAAAAAAAAAAYHBQgDBAECCQD/xABLEAACAQIDBQUFBAcGAwcFAQABAgMREgAEIgUGEyEyBzFCUmIjQVFygggUYZIzQ3GistLwFVOBkaHCc7HiCSSDo9Hh8hY0k8HxY//EABsBAAMAAwEBAAAAAAAAAAAAAAMEBQACBgEH/8QAMBEAAQQBBAAEBAYCAwAAAAAAAQACAxEhBBIxQRMiUWEFMnGBFEKRobHwI9EzwfH/2gAMAwEAAhEDEQA/APLh4Kd3wx8yUH+GNosPf8eX4Y1vjQ/hz5VwuDaOTS6JTl+zniw32E4T/bWQa4IPvQjJIW0s0crqhNy8NmsorLfqKrbrxXVl/wAsNv7NbV2hkQHaOmfiNytGCGYiyvEVlZaK93+GPJW2x30WMNOBXo9vjmS2elW1StxJ5AhTXncbtV1OnRbd04JNmZV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GL_FUNCS(v) \ | |
v(glFlush) \ | |
v(glFinish) | |
#define INIT_GL_FUNC(f) decltype(::f) f = nullptr; | |
GL_FUNCS(INIT_GL_FUNC) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <array> | |
#include <initializer_list> | |
#include <iostream> | |
template <typename T, size_t N> | |
struct V | |
{ | |
static_assert(N > 1, "V"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYSTEM = $(shell uname) | |
ifeq ($(SYSTEM),Darwin) | |
CLANG = /opt/local/bin/clang++-mp-3.3 | |
else | |
CLANG = $(shell which clang) | |
endif | |
CXX = $(CLANG) | |
CC = $(CLANG) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Draw a path. Format of the path notation is in some way similar to SVG Path. | |
* Next commands are supported: | |
* | |
* * 'M' - move current context point to (x, y) where x and y are following | |
* numbers. Example: | |
* | |
* ['M', 0, 0] | |
* | |
* * 'L' - draw a line from current context point to (x, y) where x and y are |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// не так: | |
function () { | |
someF( | |
a, | |
b | |
); | |
} | |
// а так: | |
function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ '/opt/local/bin/node', | |
1 verbose cli '/opt/local/bin/npm', | |
1 verbose cli '-q', | |
1 verbose cli 'i', | |
1 verbose cli 'browserify' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose cache add [ 'browserify', null ] | |
5 verbose cache add name=undefined spec="browserify" args=["browserify",null] |
NewerOlder