- version 3.6
Check those constraints:
$this->anything()
| {- authored by https://github.com/lucamug -} | |
| module Main exposing (main) | |
| import Browser | |
| import Html exposing (..) | |
| import Html.Attributes | |
| import Html.Events | |
| import Json.Decode |
| (Array.from(document.getElementsByTagName('a'))).forEach((anchor) => {anchor.innerHTML = anchor.href;}); |
| %Open two shells | |
| %In first shell | |
| {ok, ListenSock} = gen_tcp:listen(8091, [{active,true}, binary]). | |
| {ok, AcceptSock} = gen_tcp:accept(ListenSock). | |
| %it waits, so proceed to connect in second shell: | |
| %In second shell | |
| {ok, ClientSock} = gen_tcp:connect({127,0,0,1}, 8091, [binary, {active, true}]). |
| //for chrome/chromium browser (verified working May 2018) | |
| /* | |
| Shows a table of which dates WakaTime tracked work on a project and | |
| how many seconds were tracked on that date. How to use: | |
| disable any json formatting extensions | |
| use dev tools to view network requests | |
| open project page in WakaTime | |
| open AJAX request in new tab |
| --create example data (20 rows) | |
| CREATE TABLE employees (employee_id integer PRIMARY KEY, name text); | |
| INSERT INTO employees | |
| VALUES | |
| (1, 'Zachary Ashley'), | |
| (5, 'Oliver Zuniga'), | |
| (17, 'Ashley Carney'), | |
| (19, 'Callie Singh'), | |
| (23, 'Yamilet Barrett'), | |
| (31, 'Jamir Stanton'), |
| /* with 0 margin, 0 padding and sans-serif */ | |
| body { | |
| margin:0; | |
| padding:0; | |
| background-image: | |
| -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, #eee), color-stop(.25, transparent)), | |
| -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, #eee), color-stop(.25, transparent)), | |
| -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.75, transparent), color-stop(.75, #eee)), | |
| -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.75, transparent), color-stop(.75, #eee)); | |
| background-size:10px 10px; |