This file contains 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
Mix.install([ | |
{:ecto_sql, "~> 3.7.0"}, | |
{:postgrex, "~> 0.15.0"} | |
]) | |
Application.put_env(:foo, Repo, database: "mix_install_examples", password: "postgres", username: "postgres") | |
defmodule Repo do | |
use Ecto.Repo, | |
adapter: Ecto.Adapters.Postgres, |
This file contains 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
Mix.install([ | |
{:benchee, "~> 1.0"}, | |
{:benchee_html, "~> 1.0", only: :dev} | |
]) | |
minimal_size = 5 | |
medium_size = 1000 | |
big_size = 10_000 | |
build_list = fn size -> |
This file contains 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 f034e4a69845f47f5789f2b136b24626e17600a2 Mon Sep 17 00:00:00 2001 | |
From: v0idpwn <v0idpwn@gmail.com> | |
Date: Mon, 2 Nov 2020 16:57:41 -0300 | |
Subject: [PATCH] reproducing attempt | |
--- | |
test/ecto/repo_test.exs | 24 ++++++++++++++++++++++++ | |
1 file changed, 24 insertions(+) | |
diff --git a/test/ecto/repo_test.exs b/test/ecto/repo_test.exs |
This file contains 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
-- primality test written in haskell | |
-- github.com/v0idpwn | |
multipliers = [y | k <- [1..], y <- [(6*k)-1, (6*k)+1]] | |
used n = [2,3] ++ takeWhile(< sqrt n) multipliers | |
check_div :: Int -> Int -> Bool | |
check_div k p | |
| mod k p == 0 = True | |
| otherwise = False |
This file contains 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
#include <stdio.h> | |
#include <locale.h> | |
int main (){ | |
int repeat=0; | |
do { | |
printf ("Locale is: %s\n", setlocale(LC_CTYPE,NULL) ); | |
setlocale (LC_CTYPE,""); | |
} while (!repeat++); | |
return 0; |