Skip to content

Instantly share code, notes, and snippets.

View tic-tac-toe.wast
(module
(type $FUNCSIG$vj (func (param i64)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$ijjjii (func (param i64 i64 i64 i32 i32) (result i32)))
(type $FUNCSIG$ijjii (func (param i64 i64 i32 i32) (result i32)))
(type $FUNCSIG$ijji (func (param i64 i64 i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "assert" (func $assert (param i32 i32)))
(import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
(import "env" "read_message" (func $read_message (param i32 i32) (result i32)))
View bat.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View example.html
<h1>Hello World!</h1>
View asdf.js
document.body.addEventListener('click', function(e) {
var el = e.target;
if (el.matches('.traffic.widget .tabs__tab')) {
console.log('match');
}
});
View test.js
var _user$project$Native_Thing = function() {
function toHtml(model, factList) {
function render(e) {
console.log('render', e);
var domNode = document.createElement('div');
return domNode;
}
View Chart.js
var _bitrage_io$bitrage_io$Native_Page_Chart = function() {
var d3 = require('d3');
function toHtml(model, factList) {
return _elm_lang$virtual_dom$Native_VirtualDom.custom(
factList,
model,
impl(model)
);
View postcss.json
{
"use": [
"postcss-url",
"cssnano"
],
"cssnano": {
"autoprefixer": false
},
"postcss-url": {
"url": "inline"
View resizeImage.graphql
mutation resizeImage{
small: resize(url:"http://i.imgur.com/sybkv4j.jpg", w: 100, h: 100)
medium: resize(url:"http://i.imgur.com/sybkv4j.jpg", w: 300, h: 300)
large: resize(url:"http://i.imgur.com/sybkv4j.jpg", w: 450, h: 450)
}
View test.graphql
{
by_loid(loid:"1.0.600860989") {
... on Story {
thumbnail {
...thumbnailInfo
}
headline
summary
}
... on LayoutContainer {
View t.elm
import Json.Decode exposing (..)
import Html exposing (text)
main =
let
result = decodeString string "\"test\""
in
case result of
Ok r ->
r |> toString |> text