This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const expr = /export \{?((.|\s)+?)\}? from \'(.+)\'/gmi | |
process.stdin.setEncoding('utf8'); | |
let input = '' | |
process.stdin.on('data', (chunk) => { | |
input += chunk | |
}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE QuasiQuotes #-} | |
module Repository.Tools.Statements ( | |
addTool, | |
getTools, | |
removeToolById, | |
addTags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')" && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [] [] = ([], []) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jeotario's academy | |
class Player { | |
String name; | |
int age; | |
Player(this.name, this.age); | |
} | |
class Org { | |
String name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jeotario's academy | |
enum Team { SkGaming, Furia, MiBr, Liquid, GodSent } | |
void infoTeam(Team team) { | |
switch(team) { | |
case Team.MiBr: | |
case Team.Furia: | |
case Team.GodSent: | |
print('Time cheio de brasileiros'); |