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 / 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 / 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'),
@rafaell-lycan
rafaell-lycan / GithubService.js
Created September 6, 2015 19:42
Simple $http Angular exemple with Browserify and ES6
//services/GithubService.js
function GithubService ($http) {
var url = 'https://api.github.com/users/';
var getUser = () => $http.get(url + user);
return {
getUser : getUser
};
}
@rafaell-lycan
rafaell-lycan / curso.md
Created September 22, 2015 16:48
O que é um curso?

#O que é um curso?

Ao meu ver um curso funciona como um livro, onde é dividido por capítulos e os capítulos podem conter sub tópicos.

A principal diferença está no tipo de conteúdo, onde o importância é passar a mensagem a diante de forma clara e objetiva, indiferente do tipo de mídia.

Cursos normalmente estão em 2 principais formatos pelo que tenho acompanhando nos últimos tempos

  • Vídeos
  • Texto explicando partes do código, dando exemplos e algum campo onde o usuário possa interagir e validar o que esta lendo.
@rafaell-lycan
rafaell-lycan / player.js
Created September 23, 2015 20:14
A easy way to play songs using SoundCloud API
function Player () {
var API_URL = 'https://api.soundcloud.com/tracks/',
TOKEN = '10b1e7bf6b21e1a2a2971196b918833a';
var _player = document.createElement('audio');
var init = function (song) {
if(!song) return;