Skip to content

Instantly share code, notes, and snippets.

View jeovazero's full-sized avatar
:octocat:
lamentavel

jeovazero

:octocat:
lamentavel
  • JOI/SC
View GitHub Profile
// jeotario's academy
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
void main() {
runApp(MyApp());
}
import qualified Data.Set as Set
old = ['A', 'B', 'C']
current = ['B', 'D', 'E', 'E', 'D']
-- diff old current = (['A', 'C'], ['D', 'E'])
-- to remove: ['A', 'C']
-- to add: ['D', 'E']
diff [] [] = ([], [])
@jeovazero
jeovazero / Dockerfile
Created May 27, 2020 18:43
Node + sqitch + chromium
FROM node:12.16.3-alpine3.10
# install sqitch
RUN apk add --no-cache --virtual build-deps \
g++ make \
perl-dev tzdata \
perl-dbd-pg postgresql-client && \
cp /usr/share/zoneinfo/UTC /etc/localtime && \
echo UTC > /etc/timezone && \
perl -MCPAN -e "CPAN::Shell->notest('install', 'App::Sqitch')" && \
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
module Repository.Tools.Statements (
addTool,
getTools,
removeToolById,
addTags
// https://github.com/jeovazero/performance-experiments/blob/master/perfMap.js
// node v12.13.0 (npm v6.12.0)
> node perfMap.js
==
Testing the 'map' function
@jeovazero
jeovazero / index.js
Created November 21, 2019 17:15
Partition in Node v12
const R = require('ramda')
const _ = require('lodash')
const NS_PER_SEC = 1e9
const NS_PER_MILLIS = 1e6
function partitionV2(cond, data) {
const accepted = []
const rejected = []
const len = data.length
const expr = /export \{?((.|\s)+?)\}? from \'(.+)\'/gmi
process.stdin.setEncoding('utf8');
let input = ''
process.stdin.on('data', (chunk) => {
input += chunk
});
import qualified Data.Set as Set
fInput [] = []
fInput (_:b:c:others) =
(words b, c):fInput others
solve' _ target [] ans
| target /= [] = []
| otherwise = ans
solve' dict target (p:ps) ans =
diff --git a/src/CombinatorsAnimated.elm b/src/CombinatorsAnimated.elm
index 297029f..2afadc4 100644
--- a/src/CombinatorsAnimated.elm
+++ b/src/CombinatorsAnimated.elm
@@ -19,18 +19,6 @@ import Html.Styled.Attributes as Attrs exposing (..)
import Html.Styled.Keyed as Keyed
import Html.Styled.Lazy exposing (lazy)
import StyleGuide as Theme
-import Styles
- exposing
diff --git a/src/Contents.elm b/src/Contents.elm
index 82ac772..f856fe4 100644
--- a/src/Contents.elm
+++ b/src/Contents.elm
@@ -34,52 +34,59 @@ githubLinkData =
languages =
- [ { label = "OCaml"
- , rot = 15