This file contains 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
<a href="javascript:s=document.createElement('SCRIPT');s.type='text/javascript';s.src='https://raw.github.com/gist/1267050/c20d7312e80a152508fb04a91f09fae8248b138c/embedr.js?'+Math.random();document.getElementsByTagName('head')[0].appendChild(s);">Embedr</a> | |
<ul> | |
<li>Grab the link to your bookmarks bar up there</li> | |
<li>Click on 'Embedr' bookmark when you are on a page you want to get embeds from</li> | |
</ul> |
This file contains 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
RewriteEngine on | |
RewriteRule ^(.*)\.hx\.js compilejs.php?cl=$1 [QSA] |
This file contains 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 WorkerScript; | |
class MyWorkerScript extends WorkerScript { | |
public override function onMessage(e){ | |
trace("on message triggered"); | |
postMessage("ola"); | |
} | |
static function main(){ |
This file contains 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
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
class HybridSwitch { | |
/* | |
this macro attempts to make switch / case work both | |
with the new pattern matching feature and with | |
simple switch variables |
This file contains 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
import js.npm.mongoose.Model; | |
import js.npm.mongoose.Schema; | |
import js.npm.Mongoose; | |
class TestMongoose { | |
public static function main(){ | |
Mongoose._.connect( 'mongodb://localhost/test' , cast start ); | |
} |
This file contains 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
FROM ubuntu:latest | |
MAINTAINER Yohan Boutin <yohan.boutin@teads.tv> | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
ENV HAXE_LIBRARY_PATH /usr/bin/haxelib | |
ENV HAXEPATH /usr/bin/haxe |
This file contains 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
FROM ubuntu:latest | |
MAINTAINER Ingensi labs <contact@ingensi.com> | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-server curl software-properties-common unzip | |
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections | |
RUN DEBIAN_FRONTEND=noninteractive apt-add-repository -y ppa:webupd8team/java |
This file contains 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
import haxe.Int32; | |
class Test { | |
static function main() { | |
// taken from https://github.com/HaxeFoundation/haxe/blob/development/tests/unit/src/unit/issues/Issue3414.hx.disabled | |
var x = 200015; | |
trace((((x << 28)) >> 28)); | |
trace(((x << 28) & 0xffffffff) >> 28); | |
var x32 : Int32 = 200015; |
This file contains 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
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; | |
var opts = { | |
type: window.PERSISTENT, | |
size: 1024*1024 | |
}; | |
function FileView(ul) { | |
var files = []; |
This file contains 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
var pc = new RTCPeerConnection(); | |
var localVideo = document.getElementById('local'); | |
var remoteVideo = document.getElementById('remote'); | |
var isBroadcaster = document.location.hash.indexOf('broadcast') > -1; | |
var watcherId; | |
function broadcast(stream) { | |
localVideo.src = URL.createObjectURL(stream); | |
pc.addStream(stream); |
OlderNewer