Skip to content

Instantly share code, notes, and snippets.

View henriquehorbovyi's full-sized avatar
🪐

Henrique Horbovyi henriquehorbovyi

🪐
View GitHub Profile
recyclerView.addItemDecoration(DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
@henriquehorbovyi
henriquehorbovyi / Github Emojis
Created April 6, 2016 02:34
Gihub emojis to improve my commits. :D
http://www.emoji-cheat-sheet.com/
@henriquehorbovyi
henriquehorbovyi / mix_services.sh
Created April 4, 2016 02:46
A script to join in one place all services that I need in my environment.
#!/bin/bash
service=$1
action=$2
if [ $service == 'lampp' ]
then
sudo /opt/lampp/./manager $action
else
sudo service $service $action
@henriquehorbovyi
henriquehorbovyi / lazyPush.sh
Last active December 17, 2015 01:00
This is shell file to add,commit and push repos when I'm lazy... :P
#!/bin/bash
# If you are lazy when have to add, commit and push the final work on GitHub, you'll love it! :P
git add --all
git commit $*
git push
@henriquehorbovyi
henriquehorbovyi / animation-jquery-ui.html
Last active September 6, 2015 21:14
This file keep my animations that I've learned with Jquery... :)
<!DOCTYPE html>
<html>
<head>
<title>Krypton Redux</title>
<link rel='stylesheet' type='text/css' href='stylesheet.css'/>
<script type='text/javascript' src='script.js'></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<style>
body {
@henriquehorbovyi
henriquehorbovyi / Test.jsp
Created September 2, 2015 11:18
This is a test (a crazy list)
BookDAO bdao = new BookDAO();
ArrayList<String> data = bdao.select("livro");
String cols[] = (data.get(0).split(","));
data.remove(0);
for(int i = 0; i < data.size(); i++){
String inp[] = data.get(i).split(", ");
for(int j = 0; j < inp.length-1; j++){
out.print("<br> <b>"+cols[j]+"</b><br> <input type='text' value='"+inp[j]+"'>");
}
@henriquehorbovyi
henriquehorbovyi / Connection.php
Last active September 1, 2015 19:56
Database Connection PHP using the class PDO.
<?php
class Connection{
public static $db;
private static function doConnection(){
if (!isset(self::$db)) {
try {
$host = "YOUR_HOST";
$db_name = "YOUR_DB";
$user = "YOUR_USER";
$pass = "YOUR_PASS";
@henriquehorbovyi
henriquehorbovyi / 2048.py
Last active August 29, 2015 14:28 — forked from onlurking/2048.py
Python 3 port and PEP8 compliant version of David Sousa's 2048 game, to run install the latest version of pygame with python 3: https://bitbucket.org/pygame/pygame/get/default.zip, original source: https://github.com/davidsousarj/2048py/blob/master/2048py.py
# 2048.py
# Written in python / pygame by DavidSousaRJ - [email protected]
# License: Creative Commons
# Sorry about some comments in portuguese!
import os
import sys
import pygame
from pygame.locals import *
from random import randint
@henriquehorbovyi
henriquehorbovyi / Android Studio .gitignore
Last active August 29, 2015 14:26 — forked from mdzhossain/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files