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
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
.card { | |
font-family: arial; | |
font-size: 20px; | |
text-align: center; | |
color: black; | |
background-color: #EEDFA6; | |
} | |
.question-text{ | |
text-align: left |
<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. |
{{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++) { |
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
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
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 () |
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:" |
//------------------------------------------------------------- | |
// | |
// 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 |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.