This file contains 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
query { | |
user (login: "martimatix") { | |
name | |
repositories (first: 5, orderBy: { field: UPDATED_AT, direction: DESC }) { | |
pageInfo { | |
hasNextPage | |
endCursor | |
} | |
edges { | |
node { |
This file contains 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
update : Msg -> Model -> ( Model, Cmd Msg ) | |
update msg model = | |
case msg of | |
UrlChange location -> | |
let | |
( nextPhrase, nextPhrases ) = | |
nextLineAndCycleList model.phrases | |
in | |
{ model | |
| location = location |
This file contains 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
Tick time -> | |
if time |> inSeconds |> isMultipleOfThree then | |
let | |
( nextLine, nextModel ) = | |
nextLineAndCycleList model | |
in | |
nextModel ! [ Navigation.modifyUrl nextLine ] | |
else | |
model ! [] |
This file contains 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
-- DungeonGenerator.elm | |
clean : Model -> Model | |
clean ({ rooms, corridors, activePoints } as model) = |
This file contains 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
'use strict'; | |
const doc = require('dynamodb-doc'); | |
const dynamo = new doc.DynamoDB(); | |
const Q = require('kew'); | |
module.exports.handler = (event, context, callback) => { | |
function putItem() { | |
const defer = Q.defer(); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Elm Crystal Chat Proof of Concept</title> | |
<script src="elm.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
const websocketProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:'; |
This file contains 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 Html exposing (..) | |
import Html.App as Html | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import WebSocket | |
import List | |
main: Program Never | |
main = | |
Html.program |
This file contains 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 Html exposing (..) | |
import Html.App as Html | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
main = | |
Html.program | |
{ init = init | |
, view = view | |
, update = update |
This file contains 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 Html exposing (Html, p, label, br, input) | |
import Html.App as Html | |
import Html.Attributes exposing (checked) | |
import Html.Events exposing (onCheck) | |
import Svg exposing (..) | |
import Svg.Attributes exposing (..) | |
import Time exposing (Time, second) | |
main = |
This file contains 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
[ | |
{ | |
"category": { | |
"iconPath": null, | |
"id": 4, | |
"keywords": [ | |
"Learning", | |
"Education" | |
], | |
"name": "Education Centres" |