jq is useful to slice, filter, map and transform structured json data.
brew install jq
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
| body { | |
| background-color: #272822; | |
| } | |
| div#cgit { | |
| padding: 0em; | |
| margin: 0em; | |
| font-family: sans-serif; | |
| font-size: 10pt; | |
| color: white; |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| [Fact] | |
| public void First() | |
| { | |
| var tokenHandler = new JWTSecurityTokenHandler(); | |
| var symmetricKey = GetRandomBytes(256/8); | |
| var now = DateTime.UtcNow; | |
| var tokenDescriptor = new SecurityTokenDescriptor | |
| { | |
| Subject = new ClaimsIdentity(new Claim[] |
| ISO 3166 Country Code | ISO639-2 Country Code | Country | ISO 3166 Country Code | ISO639-2 Lang | Language | Date Format | |
|---|---|---|---|---|---|---|---|
| ALB | AL | Albania | sqi | sq | Albanian | yyyy-MM-dd | |
| ARE | AE | United Arab Emirates | ara | ar | Arabic | dd/MM/yyyy | |
| ARG | AR | Argentina | spa | es | Spanish | dd/MM/yyyy | |
| AUS | AU | Australia | eng | en | English | d/MM/yyyy | |
| AUT | AT | Austria | deu | de | German | dd.MM.yyyy | |
| BEL | BE | Belgium | fra | fr | French | d/MM/yyyy | |
| BEL | BE | Belgium | nld | nl | Dutch | d/MM/yyyy | |
| BGR | BG | Bulgaria | bul | bg | Bulgarian | yyyy-M-d | |
| BHR | BH | Bahrain | ara | ar | Arabic | dd/MM/yyyy |
| #!/usr/bin/env python | |
| """ | |
| Usage: | |
| $ cat hastebin.py | ./hastebin.py | |
| http://hastebin.com/KEY | |
| $ ./hastebin.py hastebin.py | |
| http://hastebin.com/KEY | |
| """ |