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
| 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 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
| 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 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
| 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 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 WorkerScript; | |
| class MyWorkerScript extends WorkerScript { | |
| public override function onMessage(e){ | |
| trace("on message triggered"); | |
| postMessage("ola"); | |
| } | |
| static function main(){ |
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
| RewriteEngine on | |
| RewriteRule ^(.*)\.hx\.js compilejs.php?cl=$1 [QSA] |
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
| <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> |
NewerOlder