Skip to content

Instantly share code, notes, and snippets.

View caioleonhardt's full-sized avatar

Caio Leonhardt caioleonhardt

View GitHub Profile
@edubarbieri
edubarbieri / create.sql
Created October 28, 2016 13:46
Create new database and user Mysql
--Create Database
CREATE DATABASE wallet COLLATE 'utf8_general_ci';
CREATE USER 'wallet'@'localhost' IDENTIFIED BY 'senha';
GRANT ALL PRIVILEGES ON wallet.* TO 'wallet'@'localhost';
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'wallet'@'localhost';
@roryokane
roryokane / 1 – myers (default) algorithm.diff
Last active March 25, 2024 03:02
Comparison between Git diff algorithms: myers (default) vs. patience (example favors patience)
diff --git a/file.c b/file.c
index 6faa5a3..e3af329 100644
--- a/file.c
+++ b/file.c
@@ -1,26 +1,25 @@
#include <stdio.h>
-// Frobs foo heartily
-int frobnitz(int foo)
+int fib(int n)