If you are using this already, consider changes soon due the discussion around current ESX proposal.
Feel free to keep an eye on udomsay as that will be the implementation reference for consumers.
# Title: Creating a WebAssembly binary and running it in a browser | |
# Author: Mikael Lundin | |
# Date: 2016-06-19 |
#!/bin/bash | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo -i export CPPFLAGS="-DSIZEOF_LONG_INT=8" | |
sudo apt-get -y install gcc-5 g++-5 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 | |
cd ~ | |
echo "Configuring the unixODBC 2.3.1 Driver Manager" |
/** | |
* This codemod expects 2 CLI arguments: | |
* - packageDir: the path of the directory containing the package.json. It's used to detect whether a path points | |
* to a dependency or an internal module. | |
* - rootDirs: root directory paths separated by a comma if you have more than one root. | |
* Let's say that you have two files: | |
* - src/component.js | |
* - src/index.js containing the import "import Component from 'component.js';" | |
* To have the transformation successfully working you need to call jscodeshift with the "--rootDirs ./src" argument. | |
*/ |
class Container<Action, State> { | |
var state:tink.state.State<State>; | |
var reducer:State->Action->State; | |
public function new(initial, reducer) { | |
this.state = new State(initial); | |
this.reducer = reducer; | |
} | |
using WithMacro; | |
typedef Player = { | |
final name:String; | |
final level:Int; | |
} | |
class Main { | |
static function main() { | |
var player = {name: "Dan", level: 15}; |
//You can use any package name here. | |
//It's not required to match the namespace of php file. | |
package; | |
import php.NativeStructArray; | |
typedef EncodingOptions = { | |
?prettyPrint:Bool, | |
?enableJsonExprFinder:Bool, | |
} |
If you are using this already, consider changes soon due the discussion around current ESX proposal.
Feel free to keep an eye on udomsay as that will be the implementation reference for consumers.
/* -------------------------------------------------------------------------- */ | |
/* More here; */ | |
/* -------------------------------------------------------------------------- */ | |
//gist.github.com/rphlmr/0d1722a794ed5a16da0fdf6652902b15 | |
https: export function distinctOn<Column extends AnyColumn>(column: Column) { | |
return sql<Column["_"]["data"]>`distinct on (${column}) ${column}`; | |
} | |
export function jsonBuildObject<T extends SelectedFields>(shape: T) { |