Skip to content

Instantly share code, notes, and snippets.

Rafaell Lycan rafaell-lycan

Block or report user

Report or block rafaell-lycan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rafaell-lycan
rafaell-lycan / App.jsx
Last active Jul 24, 2018
Source code for implementing a React <Tabs/> component.
View App.jsx
import React from 'react';
import { render } from 'react-dom';
import Tabs from './Tabs';
const App = () => {
return (
<Tabs>
<Tabs.Tab label={'Tab 1'}>
<p>Content 1</p>
</Tabs.Tab>
@rafaell-lycan
rafaell-lycan / README.md
Last active Jul 17, 2018
Web-Combiner: Assets Combiner
View README.md

Web-Combiner

A CSS, JS, and Handlebars combiner, compressor, and server

The idea

A middleware that knows how to combine, compress and serve CSS and JS files.

When the route is triggered, Web Combiner grab one of the params css and js to create the final result with those files if them exists, otherwise it throws an Error with status 404.

@rafaell-lycan
rafaell-lycan / humanized-greetings.js
Created Jul 11, 2018
Get a humanized, "Morning", "Afternoon", "Evening" in Javascript. **Great for user greetings!**
View humanized-greetings.js
/**
* Function getGreetingTime
* It returns a greet string based on the current time.
* @returns {string}
*
* Usage:
*
* const greetings = `Good ${getGreetingTime()}, James.`
* Assuming the time is 8pm, the output above will be "Good evening, James."
*/
View fonts.md

Titles

  • Open Sans
  • Montserrat
  • PT Sans

Text

  • Droid Serif
  • PT Serif
View keybase.md

Keybase proof

I hereby claim:

  • I am rafaell-lycan on github.
  • I am rafaell (https://keybase.io/rafaell) on keybase.
  • I have a public key whose fingerprint is 8A78 3B71 E110 8F9B 0301 8853 BA68 E54A 0CE1 28D2

To claim this, I am signing this object:

@rafaell-lycan
rafaell-lycan / dns-prefetch.html
Created Jan 2, 2017
DNS prefetch (Google Analytics & Fonts)
View dns-prefetch.html
<!-- DNS prefetch -->
<link rel='dns-prefetch' href='//ajax.googleapis.com' />
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
View index.html
<!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>
View municipios.json
[
{
":cod_uf": "52",
":uf": "Goiás",
":city_id": "00050",
":city": "Abadia de Goiás",
":sigla_uf": "GO",
":city_code": "5200050"
},
{
View Preferences.sublime-settings.json
{
"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",
View jobs.json
[
{
"_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",
You can’t perform that action at this time.