View machine.js
const initialState = { | |
id: 'toggle', | |
initial: 'idle', | |
context: { | |
msg: '' | |
}, | |
states: { | |
idle: { | |
on: { | |
DONE_AVAILABLE: "granted", |
View machine.js
const grantedState = { | |
id: 'granted', | |
type: 'final' | |
} | |
const deniedState = { | |
id: 'denied', | |
type: 'final' | |
} |
View gist:0b3b5dbe59b9a19dd1d1
In file included from ../../webrtc/base/iosfilesystem.mm:15: | |
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5: | |
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:8: | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type | |
- (id)copyWithZone:(nullable NSZone *)zone; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: expected a type | |
- (id)mutableCopyWithZone:(nullable NSZone *)zone; | |
^ | |
/Applications/Xcode.app/Contents/Dev |
View gist:08ff7fbb33fd8930bb19
Verifying that +matbee is my blockchain ID. https://onename.com/matbee |
View gist:16e8c6f17f725c18055e
/*! Socket.IO.js build:0.9.16, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */ | |
var io = ('undefined' === typeof module ? {} : module.exports); | |
(function() { | |
/** | |
* socket.io | |
* Copyright(c) 2011 LearnBoost <dev@learnboost.com> | |
* MIT Licensed | |
*/ |
View index.html
<html> | |
<head> | |
</head> | |
<body> | |
<script> | |
require('nw.gui').Window.get().evalNWBin(null, 'test.bin'); | |
</script> | |
</body> | |
</html> |
View test.js
function ab2str(buf) { | |
return String.fromCharCode.apply(null, new Uint8Array(buf)); | |
} | |
function str2ab(str) { | |
var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char | |
var bufView = new Uint8Array(buf); | |
for (var i=0, strLen=str.length; i<strLen; i++) { | |
bufView[i] = str.charCodeAt(i); | |
} |
View nacl.patch
diff --git a/.gitignore b/.gitignore | |
index 1055458..7358050 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -8,3 +8,4 @@ Coverage | |
*.gcda | |
library/polarssl.info | |
/build-nacl-* | |
+/build-nacl-* | |
diff --git a/configs/config-ccm-psk-tls1_2.h b/configs/config-ccm-psk-tls1_2.h |
View designer.html
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
</style> | |
</template> | |
<script> |
View gist:9282695
Making all in vector | |
make[3]: Entering directory `/home/matbee2/dev/audioconverter.js/ffmpeg.js/lame/libmp3lame/vector' | |
/bin/bash ../../libtool --tag=CC --mode=compile /home/matbee2/emscripten/emcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I. -I../../libmp3lame -I../../mpglib -I../.. -O3 -ffast-math -funroll-loops -Wall -MT xmm_quantize_sub.lo -MD -MP -MF .deps/xmm_quantize_sub.Tpo -c -o xmm_quantize_sub.lo xmm_quantize_sub.c | |
libtool: compile: /home/matbee2/emscripten/emcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I. -I../../libmp3lame -I../../mpglib -I../.. -O3 -ffast-math -funroll-loops -Wall -MT xmm_quantize_sub.lo -MD -MP -MF .deps/xmm_quantize_sub.Tpo -c xmm_quantize_sub.c -o xmm_quantize_sub.o | |
xmm_quantize_sub.c:65:34: warning: implicit declaration of function '_mm_loadu_ps' is invalid in C99 [-Wimplicit-function-declaration] | |
const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]); | |
^ | |
xmm_quantize_sub.c:65:18: error: initializing 'const __m12 |
NewerOlder