Skip to content

Instantly share code, notes, and snippets.

View LucasKauz's full-sized avatar
🏠
/home/lucas

Lucas Marques LucasKauz

🏠
/home/lucas
View GitHub Profile
@LucasKauz
LucasKauz / gist:4579467
Last active December 11, 2015 09:19
Se você está tendo problemas com o controle de brilho de seu Ubuntu 12.10 ( 12.04, e outros ) , um pequeno ajuste. ( via : http://www.techjail.net/solved-brightness-problem-in-ubuntu-12-04-precise-pangolin.html )
# Abra o terminal ( Ctrl+Alt+T ) e digite:
sudo gedit /etc/default/grub
# Na janela que irá abrir, altere esta linha
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# por esta
@LucasKauz
LucasKauz / register.tpl
Created June 25, 2016 20:04
Algolia autocomplete street natural search for opencart - Autocompletar de endereço pela busca em de logradouros (rua, av, etc) em linguagem natural por Alogolia para Opencart
<?php echo $header; ?>
<script src="https://cdn.jsdelivr.net/places.js/1/places.min.js"></script>
<div class="container">
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
<?php if ($error_warning) { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?></div>
@LucasKauz
LucasKauz / donut.html
Created October 9, 2017 12:55
Animated donut with stroke
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Donut circle</title>
<style>
/** Rotate the donut to meet the circle top center */
.donut {
transform: rotate(-89.9deg);
}
@LucasKauz
LucasKauz / lol-champions.json
Created August 18, 2019 19:52 — forked from jfisher446/lol-champions.json
League of legends champion data in JSON format
[ { "desc" : "Unlike other foxes that roamed the woods of southern Ionia, Ahri had always felt a strange connection to the magical world around her; a connection that was somehow incomplete. Deep inside, she felt the skin she had been born into was an ill fit for her and dreamt of one day...",
"id" : 103,
"name" : "Ahri",
"tags" : [ "assassin",
"mage",
"ranged"
]
},
{ "desc" : "There exists an ancient order originating in the Ionian Isles dedicated to the preservation of balance. Order, chaos, light, darkness -- all things must exist in perfect harmony for such is the way of the universe. This order is known as the Kinkou and it employs a triumvirate...",
"id" : 84,
{
"freeChampionIds": [
2,
14,
37,
53,
107,
110,
114,
122,
{
"data": [
{
"title": "Take the trash out",
"description": "The user should be able to take the trash out.",
"dueDate": "2019-03-12",
"priority": "Low",
"comment": "Hey, could you take the trash out?"
}
]
{
"todos": [
{ "id": "1", "content": "test 1" },
{ "id": "2", "content": "test 2" }
]
}
@LucasKauz
LucasKauz / settings.json
Created August 12, 2020 16:00
Simple settings.json with autofix and jetbrains font
{
"editor.fontFamily": "'JetBrains Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontSize": 14,
"editor.fontWeight": "300",
"editor.lineHeight": 22,
"editor.renderWhitespace": "all",
"editor.fontLigatures": true,
"terminal.integrated.fontSize": 10,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
@LucasKauz
LucasKauz / green-red.md
Last active March 6, 2021 16:15
Just starting some doc on lessons learned

GreenRed

Rust

Watching the project

If you want to avoid the tedious task of re-running the cargo run for every change you make you can install cargo-watch then use it with run as the cargo command, like the following

cargo watch -x run # -x run means cargo will run cargo run on every change
{"v":"5.9.6","fr":60,"ip":0,"op":291,"w":620,"h":500,"nm":"Double Panel Test","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Null 1","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[310,216,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[82.4,82.4,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":1800,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 16","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[237,261,0],"ix":2,"l":2},"a":{"a":0,"k":[-13,2,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.58,0.58,0.58],"y":[1,1,1]},"o":{"x":[0.42,0.42,0.42],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.42,0.42,0.42],"y":[0,0,0]},"t":30,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":120,"s":[100,100,100]},{"t":150,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[144