Skip to content

Instantly share code, notes, and snippets.

View jhonnymoreira's full-sized avatar

Jhonny Moreira jhonnymoreira

View GitHub Profile
@jhonnymoreira
jhonnymoreira / gulpfile.js
Created March 12, 2015 23:05
Gulp with Stylus, Kouto Swiss, Jeet and BrowserSync
var gulp = require('gulp');
var stylus = require('gulp-stylus');
var browserSync = require('browser-sync');
var koutoSwiss = require('kouto-swiss');
var jeet = require('jeet');
var reload = browserSync.reload;
var paths = {
stylusEntry: ["./stylus/main.styl"],
stylusAll: ["./stylus/*.styl"]
@jhonnymoreira
jhonnymoreira / pad.styl
Last active August 29, 2015 14:17
Simple Stylus mixing to add shorthand (and specific) padding while converting units to 'rem' with the Kouto Swiss function rem().
pad(args, shorthand = true)
positions = top right bottom left
if shorthand
for i in (0..length(args) - 1)
args[i] = rem(args[i])
padding: args
else
for i in (0..length(args) - 1)
if args[i] != 'x'
@jhonnymoreira
jhonnymoreira / pad.scss
Last active August 29, 2015 14:19
Simple Sass mixing to add shorthand (and specific) padding while converting units to 'rem' with the Bourbon function rem().
@mixin pad($paddings, $shorthand: true) {
$orientations: top right bottom left;
@if $shorthand {
@each $value in $paddings {
$paddings: set-nth($paddings, index($paddings, $value), rem($value));
}
padding: $paddings;
} @else {
@for $i from 1 through length($paddings) {
@jhonnymoreira
jhonnymoreira / .gitconfig
Last active May 4, 2016 02:49
Git Mussum
[alias]
edis = add
statis = status
comitis = commit
puxis = push
pulis = pull
rebeisis = rebase
resetius = reset
mergius = merge
[user]
name = xxx
email = xxx
[core]
excludesfile = ~/.gitignore
[alias]
ad = add -i
br = branch
@jhonnymoreira
jhonnymoreira / _colors.scss
Created September 2, 2015 20:48
Colors to the second version of my site.
// COLORS
// ============================================================================
// Based on: https://color.adobe.com/pt/novomr-color-03-color-theme-4255297/
// White
$porcelain : #ecf0f1;
$white : #ffffff;
// Green
$observatory : #038b75;
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"dictionary": "Packages/Language - English/en_US.dic",
"font_options":
[
"gray_antialias"
],
"font_size": 12,
# Improve colors
set -g default-terminal "screen-256color"
set -g status-utf8 on
# http://stackoverflow.com/questions/22715071/vim-and-tmux-rendering-error
set-window-option -g utf8 on
# Scrolling
set -g mouse on
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="gitster"
export LANG=en_US.UTF-8
HIST_STAMPS="dd.mm.yyyy"
export UPDATE_ZSH_DAYS=1
plugins=(git)
source $ZSH/oh-my-zsh.sh
@jhonnymoreira
jhonnymoreira / symlink_dotfiles.rb
Last active July 6, 2016 06:21
Create symlink to your dotfiles