Skip to content

Instantly share code, notes, and snippets.

View arowM's full-sized avatar

Sakura-chan the goat arowM

View GitHub Profile
{-# START_FILE package.yaml #-}
name: {{name}}
version: "0.1.0.0"
category: {{category}}{{^category}}Web{{/category}}
# synopsis:
# description:
license: "MIT"
author: {{author-name}}{{^author-name}}Author name here{{/author-name}}
copyright: {{copyright}}{{^copyright}}{{year}}{{^year}}2018{{/year}} {{author-name}}{{^author-name}}Author name here{{/author-name}}{{/copyright}}
maintainer: {{author-email}}{{^author-email}}[email protected]{{/author-email}}
@arowM
arowM / index.html
Created June 24, 2018 13:49
simple message box
<html>
<head>
<style>
.box {
position: relative;
border-radius: 0.4em;
border: solid 2px #333;
margin-top: 1em;
}
foo = "This is the first file of this gist"
@arowM
arowM / Static.elm
Created March 4, 2018 08:26
Sample gist
message = "This is an example gist file."
@arowM
arowM / Main.elm
Last active March 4, 2018 03:25
Sample code for arowM/elm-embedded-gist
module Main exposing (main)
import EmbeddedGist exposing (unsafeEmbeddedGist)
import Html exposing (Html)
main : Html msg
main =
Html.div
[]
@arowM
arowM / Sample.elm
Created February 14, 2018 06:01
Handle data type that cannot handle with `Json.Decode.map8`.
module Sample exposing (..)
import Json.Decode exposing (..)
type alias ManyFields =
{ field1 : Int
, field2 : String
, field3 : String
, field4 : String
@arowM
arowM / Default.elm
Last active November 29, 2017 08:14
Default.elm
module Default
exposing
( Default
, default
, int
, string
, maybe
, stubTask
)
(function (window) {
// in nodejs, global is an object
// in normal browser environment, global is undefined
// in webpack, global is set to window
var isNodeJs = typeof global !== "undefined" && global.window === undefined;
var isCommonJs = typeof module === "object" && module && typeof module.exports === "object";
// require, that the nodejs will handle, but will remain not processed by webpack and the like
var obfuscatedRequire = function (moduleName)
ret=0;
for(i= 1 to TOO_BIG){
for(j= 1 to i){
for(k= 1 to j){
for(l= 1 to k){
tmp=notSoHeavyTask(i, j, k, l);
ret=tmp if(ret < tmp);
}
}
}
@arowM
arowM / jsdoit.css
Created November 7, 2012 04:21
2012-11-07 3rd
* {
-moz-box-sizing: border-box;
box-sizing: border-box;
background: #777;
}