Skip to content

Instantly share code, notes, and snippets.

View wuerges's full-sized avatar

Emilio Wuerges wuerges

  • Home
  • Santa Catarina - Brazil
View GitHub Profile
@wuerges
wuerges / input.txt
Created April 23, 2020 20:46
Sudoku Solver in C++ using backtracking
530070000
600195000
098000060
800060003
400803001
700020006
060000280
000419005
000080079
## PARTE 0: Pacotes basicos
sudo apt-get install sshfs tmux fonts-firacode
## Parte 1:
# configuracao do editor de texto vim
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
import Control.Applicative
import Control.Monad
fixLine [] = Nothing
fixLine (l:ls) = case l of
['O','O', _ , _ , _ ] -> Just $ ("++"++ drop 2 l) : ls
[ _ , _ , _ ,'O','O'] -> Just $ (take 3 l ++"++") : ls
_ -> (l:) <$> (fixLine ls)
main = do
@wuerges
wuerges / gera_grapfico.py
Created October 6, 2018 23:07
Gerar gráfico /r/brasilivre
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
data = pd.read_csv("Censo /r/brasilivre 2018.csv")
#
# print(data.columns)
#
# data['Idade']
#
module circuito1(
input b3,
input b2,
input b1,
input b0,
output s0);
wire [3:0] entrada = {b3, b2, b1, b0};
/*
package com.ew.spellbook.myapplication;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
/**
package com.example.aluno_uffs.pdfviewerteste;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct C {
int x, y;
bool operator<(const C & o) const {
@wuerges
wuerges / primes.py
Last active November 3, 2017 14:10
import math
import timeit
n = 1000000
def primes():
mark = n * [False]
ps = [2]
mark[2] = True
package com.example.aluno_uffs.myapplication;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;