Skip to content

Instantly share code, notes, and snippets.

View rafaell-lycan's full-sized avatar
💣
(╯°□°)╯ ︵ ┻━┻

Rafaell Lycan rafaell-lycan

💣
(╯°□°)╯ ︵ ┻━┻
View GitHub Profile
@rafaell-lycan
rafaell-lycan / Sublime Preference Settings
Last active December 17, 2015 03:29
Sublime Text 2: Preferences.sublime-settings - User
// Packages Installed (Package Control)
// - AdvancedNewFile
// - All Autocomplete
// - AngularJS
// - AutoFileName
// - Better JavaScript
// - BracketHighlither
// - Emmet
// - FileDiffs
// - JavaScript Console
@rafaell-lycan
rafaell-lycan / dexter.sql
Created July 11, 2013 22:27
SQL Dexter - PHP 500 4Linux
create table clientes(
id int primary key auto_increment,
nome_razao varchar(255) not null,
cpf_cnpj varchar(20) not null,
email varchar(100) not null,
senha varchar(100) not null,
telefone varchar(20) not null,
celular varchar(20) not null,
cep varchar(8) not null,
endereco varchar(255) not null,
@rafaell-lycan
rafaell-lycan / gist:9599296
Created March 17, 2014 13:36
My Bash Profile
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
#export CLICOLOR=1
export CLICOLOR="auto"
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
export GREP_OPTIONS="--color=auto"
export GREP_COLOR="4;33"
export TERM="xterm-color"
@rafaell-lycan
rafaell-lycan / gist:9600249
Created March 17, 2014 14:30
My Essential Software for Mac
<!DOCTYPE html>
<html>
<head>
<title>Tournament Bracket Generator</title>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script>
$(document).on('ready', function() {
var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes)
@rafaell-lycan
rafaell-lycan / README.md
Created November 10, 2014 18:06
Improve Yourself into Technology - Learn new tecnologies and others stuffs.

#Improve Yourself into Technology

If you need learn about new tecnologies and others stuff, and no have idea what make, read this:

  • 1 - Select one tecnologie if you have some knowledge to do something interesting
  • 2 - Use others tecnologies like NoSQL as Database. One nice thing to start to learn is the Firebase. Trust me, it's awesome!
  • 3 - Use one PaaS platform to run your app, like Heroku, Openshift, AppFog, App Engine or Amazon (First Year its free) - Check the tecnologie support before.
  • 4 - Use one version control based in Git. If you want, you can install GitLab in your own environment, but for I recommend use GitHub or Bitbucket because it's free for public projects and we love that.
@rafaell-lycan
rafaell-lycan / learn.md
Last active August 29, 2015 14:13
Learn - My personal learn checklist

Learn checklist

This is a simple checklist that I follow since 2011.

the unmarked items were interrupted or are still made.

Codeschool Courses checklist

HTML, CSS & others stuffs
  • 3 For 5 (HTML5 and CSS3)
@rafaell-lycan
rafaell-lycan / prevent-enter-submit.js
Created January 28, 2015 22:28
AngularJS - Prevent Enter Submit Directive
angular.module('app',[])
.directive('preventEnterSubmit', function () {
return function (scope, el, attrs) {
el.bind('keydown', function (event) {
if (13 == event.which) {
event.preventDefault(); // Doesn't work at all
window.stop(); // Works in all browsers but IE...
document.execCommand('Stop'); // Works in IE
return false; // Don't even know why it's here. Does nothing.
}
@rafaell-lycan
rafaell-lycan / smart-banner.controller.js
Created January 28, 2015 22:40
Angular - Mobile Smart banner Directive
angular.module('app')
.controller('smartBannerController', function () {
'use strict';
var vm = this;
vm.open = true;
vm.isAndroid = function (){
return ((/android/i).test(navigator.userAgent)) ? true : false;
}
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),