Skip to content

Instantly share code, notes, and snippets.

View edusantana's full-sized avatar
💭
Trabalhando

Eduardo de Santana Medeiros edusantana

💭
Trabalhando
View GitHub Profile
@edusantana
edusantana / limpar_videobot.rb
Created July 16, 2021 11:10
Código para limpar um videobot
require 'json'
j = JSON.load_file('.jb/manifest.template.json')
j['interactives'] = []
j['assets'] = []
j.delete('thumbnailCode')
File.write('.jb/manifest.template.json',JSON.pretty_generate(j))
@edusantana
edusantana / webcam-tirando-foto.html
Created November 29, 2020 21:53
Exemplo de código que tira foto da webcam
<html>
<head>
</head>
<body>
<div id="screenshot">
<video autoplay></video>
<img src="" download="new-image-name.webp">
<canvas style="display:none;"></canvas>
@edusantana
edusantana / guard.rake
Last active June 9, 2020 14:27
Create Guardfile from Rake tasks
ERB_TEMPLATE = <<~HEREDOC
guard :shell do
<% all_tasks.each do |t, files| %>
watch(%r{^(<%= files.join('|') %>)$}) do |m|
system("rake <%= t %>")
end
<% end %>
end
HEREDOC
@edusantana
edusantana / README.md
Last active September 8, 2019 22:02
click auto_envvar_prefix with setuptools
@edusantana
edusantana / testando-dependencias
Created September 4, 2019 13:49
Execução de comando para testar virtualenv
wget https://github.com/edusantana/cozer/archive/master.zip
unzip master.zip
cd cozer-master
python3 -m venv venv
. venv/bin/activate
&& pip install --editable .
cozer --help
@edusantana
edusantana / testando-dependencias
Created September 4, 2019 13:49
Execução de comando para testar virtualenv
wget https://github.com/edusantana/cozer/archive/master.zip
unzip master.zip
cd cozer-master
python3 -m venv venv
. venv/bin/activate
&& pip install --editable .
cozer --help
#!/bin/bash
nome=$(zenity --entry --text="Qual seu primeiro nome?" --entry-text="Nome")
sobrenome=$(zenity --entry --text="Qual seu sobrenome?" --entry-text="Nome")
altura=$(zenity --scale --value=160 --max-value=200 --text="Qual a sua altura?")
#peso=$(zenity --scale --value=60 --max-value=200 --text="Qual a seu peso?")
STRING=$(echo $nome | cal | head -n 1 | tr -d '[:space:]' | cut -f 2 -d 0)
tmpfile=$(mktemp)
echo $STRING >> $tmpfile
#echo "Altura informada: $altura " >> $tmpfile
package urna;
import java.util.LinkedList;
import java.util.List;
public class Controller {
List<Usuario> usuarios = new LinkedList<Usuario>();
public static void main(String[] args) {
@edusantana
edusantana / folhadeaprovacao.tex
Created April 3, 2017 12:15
Como fazer folha de aprovação
%%%%%%%%%%%%%%%%%%%%%%%%%5
%% abtex2-modelo-trabalho-academico.tex, v<VERSION> laurocesar
%% Copyright 2012-<COPYRIGHT_YEAR> by abnTeX2 group at http://www.abntex.net.br/
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
all:
latexmk -f -pdf quadro-abntex2.tex
latexmk -f -pdf tabela-fora-do-quadro.tex
latexmk -f -pdf quadro-abntex2-corrigido.tex
latexmk -f -pdf longtable-caption-type-quadro.tex