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 / 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;
@rafaell-lycan
rafaell-lycan / GithubApi.js
Last active October 20, 2015 03:31
Github API ES6
export default class GithubApi{
constructor(){
this.host = 'https://api.github.com';
}
get(...params) {
let args = [].slice.call(params);
let path = args.join('/');
return this.request('GET', path);
}
@rafaell-lycan
rafaell-lycan / CommonValidatorService.js
Created November 27, 2015 22:04
CommonValidatorService.js
(function() {
'use strict';
angular
.module('auth')
.factory('CommonValidatorService', CommonValidatorService);
function CommonValidatorService() {
function validateEmail(email) {
@rafaell-lycan
rafaell-lycan / ValidatorService.js
Last active November 30, 2015 19:06
ValidatorService.js
(function() {
'use strict';
angular
.module('auth')
.factory('Validator', Validator);
Validator.$inject = ['$q', '$timeout'];
function Validator($q, $timeout) {
@rafaell-lycan
rafaell-lycan / jobs.json
Last active February 24, 2016 01:44
jobs
[
{
"_id":"56ca70616454912bfc557d8b",
"name":"DBA of MongoDB",
"description":"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fuga, at?",
"remote":true,
"location":"São Paulo",
"type":"Full Time",
"_company":{
"_id":"56c69654c4f57f6e16605c3b",
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"draw_minimap_border": true,
"draw_white_space": "none",
"extra_file_exclude_patterns":
[
"*.pyc",
"*.pyo",
[
{
":cod_uf": "52",
":uf": "Goiás",
":city_id": "00050",
":city": "Abadia de Goiás",
":sigla_uf": "GO",
":city_code": "5200050"
},
{
@rafaell-lycan
rafaell-lycan / index.html
Created December 14, 2016 16:58 — forked from anonymous/index.html
Simple English Test - source https://jsbin.com/bedamoyiqa
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta name="description" content="[add your bin descSription]Simple English Test">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>English Test</title>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>