Skip to content

Instantly share code, notes, and snippets.

View HugoLnx's full-sized avatar

HugoLnx HugoLnx

View GitHub Profile
require 'mysql2'
def open_connection
Mysql2::Client.new(host: 'localhost', username: 'root', database: 'repeatable_read_test')
end
class ThreadLogger
def initialize(id)
@id = id
end
@HugoLnx
HugoLnx / classroom-groups-configuring-prototype.html
Created October 11, 2016 13:09
Prototype of classroom groups configuring
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
body {
padding: 10px;
}
ul, li {
@HugoLnx
HugoLnx / condominios-perto.html
Created January 11, 2017 01:55
Lista de condominios perto da gcom
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<ol>
<li>
@HugoLnx
HugoLnx / docker-compose.yml
Created June 22, 2017 20:49
Sample of docker compose yml with only one id, secret and no slaves
web:
command: sh -c "rails s --bind 0.0.0.0"
ports:
- "3000:3000"
build: .
volumes:
- .:/app
links:
- redis:redis.local
- mongodb:mongo.local
# You've got to the beginning of the document !!!
# Use G to get to the end of the document
###########
## vimrc ##
###########
git clone git@github.com:HugoLnx/vimrc.git
cd vimrc
cat use.sh
@HugoLnx
HugoLnx / gcom_talk_vim.md
Created December 18, 2017 18:28
Getting Started with Vim: Setup & Learning Tips (Summary)

Getting Started with Vim: Setup & Learning Tips

Resumo da talk

Modes

  • navigation mode
  • insert mode
  • select mode (plain, line, block)

Files

  • quit (:q :q!)
#require 'typhoeus'
require 'rest-client'
require 'open-uri'
EXTENSIONS = %w[xml rss atom]
SUFFIXES = %w[/ /feed /rss /atom /feed/rss /feed/atom /news /blog /news/feed /blog/feed]
PREFIXES = %w[/feed /rss /atom]
URLS = %w[
https://www.gamesradar.com/edge
https://www.gamesradar.com/uk/edge/
// Created based on the shadergraph for full screen shaders
// Read more: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@16.0/manual/post-processing/post-processing-custom-effect-low-code.html
// This shader can be used in the place of the FullScreen Shader Graph
// Add your logic to "TODO: Add custom logic here"
Shader "CustomTemplate/FullscreenShader"
{
Properties
{
// [HideInInspector][NoScaleOffset]unity_Lightmaps("unity_Lightmaps", 2DArray) = "" {}