An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
//------------------------------------------------------------- | |
// | |
// Hypothesis: | |
// | |
// Promises/A is a Monad | |
// | |
// To be a Monad, it must provide at least: | |
// - A unit (aka return or mreturn) operation that creates a corresponding | |
// monadic value from a non-monadic value. | |
// - A bind operation that applies a function to a monadic value |
module Main where | |
import Lib | |
main :: IO () | |
main = putStrLn "Monad Interpreter v0.1" | |
-- >> putStrLn ("Demo term: \"" ++ (show term0) ++ "\"") | |
-- >> putStrLn ("Result: " ++ (test term0)) | |
>> putStrLn "-------------------------------------" | |
>> putStrLn "Input test term:" |
module Main where | |
import Lib | |
main :: IO () | |
main = putStrLn "Monad Interpreter v0.2" | |
>> putStrLn "-------------------------------------" | |
>> putStrLn "Input test term:" | |
>> getLine >>= putStrLn . test . (read :: String -> Term) | |
>> return () |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
{{FrontSide}} | |
<script language="javascript"> | |
(function () { | |
/** | |
* Rendering all variants, in disabled state | |
*/ | |
var elems = document.querySelectorAll('#splitted-question input[type="checkbox"]'); | |
for (var i = 0, len = elems.length; i < len; i++) { |
<div class="question-text">{{Question}}</div> | |
<div class="all-variants to-split">{{AllVariants}}</div> | |
<div id="splitted-question"></div> | |
<script language="javascript"> | |
var FB_DB_NAME = '...'; | |
// Renders possible answer variants. |
.card { | |
font-family: arial; | |
font-size: 20px; | |
text-align: center; | |
color: black; | |
background-color: #EEDFA6; | |
} | |
.question-text{ | |
text-align: left |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
module Main exposing (..) | |
import RemoteData exposing (WebData, RemoteData(..), asCmd, fromTask) | |
import Html exposing (Html, text, div, input, br) | |
import Html.Events exposing (onClick) | |
import Html.Attributes exposing (type_, value) | |
import Http exposing (get, toTask) | |
import Json.Decode exposing (Decoder, string) | |
import Json.Decode.Pipeline exposing (decode, required) | |
import Random exposing (int, generate) |