A registry of regular expressions
- The expression string
- taxonomy/category
- supported engines
- a set of test inputs
| #!/usr/bin/env bash | |
| base_build() { | |
| build_dir="./build" | |
| mkdir -p "${build_dir}" | |
| # OSX build support. BSD tar vs GNU tar issue | |
| if [[ "$(uname)" == "Darwin" ]]; then | |
| alias tar=gtar | |
| fi | |
| # This takes all files that have been at least added to git |
| #!/usr/bin/env bash | |
| cd "$(dirname "$0")/.." | |
| if [[ "$(uname)" == "Darwin" ]]; then | |
| docker build --tag foo-rpmbuild . | |
| docker run --interactive --tty --rm \ | |
| --volume "${PWD}:/opt/docker-host" \ | |
| --volume "$(yarn cache dir | grep '^/'):/var/run/yarn-cache" \ | |
| foo-rpmbuild /opt/docker-host/bin/build.sh | |
| exit |
| module Lab.WebDataPagination exposing (main) | |
| import Html exposing (..) | |
| import RemoteData as RD | |
| import Json.Decode as JD | |
| import Http | |
| -- import Html.Attributes exposing (..) |
| module A exposing (..) | |
| import Debug | |
| import Html | |
| import Html exposing (..) | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (onBlur, onClick, on) | |
| import Json.Decode as JD | |
| import Json.Encode as JE |
| module A exposing (..) | |
| import Json.Decode as JD | |
| import Json.Encode as JE | |
| type alias User = | |
| { id : Int | |
| , theme : Theme | |
| } |
| module SignIn exposing (..) | |
| import Html exposing (..) | |
| import Html.App | |
| import Http | |
| import Json.Decode | |
| import Task | |
| type alias Model = |
| { | |
| "activationHooks": [ | |
| "language-shellscript:grammar-used" | |
| ], | |
| "author": "Peter Lyons <[email protected]> (http://peterlyons.com)", | |
| "bugs": { | |
| "url": "https://github.com/focusaurus/atom-format-shell/issues" | |
| }, | |
| "configSchema": { | |
| "shfmtPath": { |
| function listUsers (req, callback) { | |
| // use req as immutable input | |
| // standard node error-first callback API | |
| // success value of callback is a response-shaped object with properties: statusCode, headers, body | |
| } | |
| // I haven't built one of these, just riffing. | |
| // Look at clojure and other functional languages for examples that might | |
| // have reasonable counterparts in "functional-light" JS | |
| // Thinking more along the lines of react/redux reducer style |
| Promise.resolve('foo').then(console.log) | |
| console.log('bar') | |
| // outputs: | |
| // bar | |
| // foo |