Skip to content

Instantly share code, notes, and snippets.

View danilocandido's full-sized avatar

Danilo Cândido danilocandido

View GitHub Profile

Livros indicados no podcast Regras do Jogo e presentes na feira de livros da USP 2021

Organizados por editora, já que a compra é feita diretamente no site de cada uma (e pode ter cupons específicos).

Alameda

Site: https://www.alamedaeditorial.com.br

  • Para além do pós(-)colonial - Michael Cahen - R$ 33,00

Autonomia Literária

Site: https://autonomialiteraria.com.br/loja/

@zwaper
zwaper / index.html
Created April 20, 2021 01:46
Youtube Sidebar
<!--
For more expanation, visit:
https://stackoverflow.com/questions/57459015/how-to-embed-a-youtube-playlist-with-a-sidebar
-->
<div id="root">
<iframe
width="438"
height="250"
src="https://www.youtube.com/embed/videoseries?list=PLkSaehvtoPcxdDhbdig_EYYVl5ONrhAqt"
@delameko
delameko / upgrade-postgres-9.5-to-9.6.md
Last active October 24, 2024 08:55 — forked from johanndt/upgrade-postgres-9.3-to-9.5.md
Upgrading PostgreSQL from 9.5 to 9.6 on Ubuntu 16.04

TL;DR

Install Postgres 9.6, and then:

sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main
@sterlingwes
sterlingwes / README.md
Created January 31, 2016 02:05
Converting a scanned PDF to EPUB ebook (or other format)

Caveat

You're not going to get a beautiful EPUB out the other end - if that's what you're looking for, expect to do some manual clean-up work yourself.

Basic order of operations:

  • Convert your PDF to an OCR-friendly format
  • OCR that shit into plaintext
  • Convert that plaintext into your format of choice (in this case, an EPUB)
@marcoscastro
marcoscastro / ag_onemax.cpp
Created October 21, 2015 03:38
Algoritmos Genéticos - Problema OneMax
// Algoritmos Genéticos - Problema OneMax
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <time.h>
using namespace std;
// parâmetros do algoritmo genético
int tam_genes = 100; // quantidade de genes
@p1nox
p1nox / postgresql_configuration_on_ubuntu_for_rails.md
Last active July 20, 2024 11:55
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
@myronmarston
myronmarston / ways_to_use_vcr.rb
Created April 13, 2012 15:00
Ways to use VCR for a request made by a let block
# 1) Use VCR.use_cassette in your let block. This will use
# the cassette just for requests made by creating bar, not
# for anything else in your test.
let(:foo) { VCR.use_cassette("foo") { create(:bar) } }
it "uses foo" do
foo
end
# 2) Wrap the it block that uses #foo in VCR.use_cassette.
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')