Skip to content

Instantly share code, notes, and snippets.

View CristianLlanos's full-sized avatar
😀
What should we learn today?

Cristian Llanos CristianLlanos

😀
What should we learn today?
View GitHub Profile
@CristianLlanos
CristianLlanos / .bash_profile
Created September 18, 2015 16:19 — forked from JeffreyWay/.bash_profile
Prettier git logs
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev"
@CristianLlanos
CristianLlanos / elixir-prism.js
Last active June 24, 2016 20:39
Laravel Elixir extension script to generate custom PrismJS (https://github.com/PrismJS/prism)
var gulp = require('gulp');
var _ = require('underscore');
var Elixir = require('laravel-elixir');
var $ = Elixir.Plugins;
var config = Elixir.config;
var Task = Elixir.Task;
/*
|----------------------------------------------------------------
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 1,
"color_scheme": "Packages/Colorsublime - Themes/peacocks-in-space.tmTheme",
"font_size": 10.5,
"highlight_line": false,
"ignored_packages":
@CristianLlanos
CristianLlanos / Keymaps.sublime-keymap
Created October 13, 2015 14:51
My sublime keymaps
[
{ "keys": ["ctrl+alt+n"], "command": "new_snippet" },
{ "keys": ["n", "n"], "command": "advanced_new_file",
"context": [{ "key": "setting.command_mode", "operand": true }] },
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+b"], "command": "goto_definition_scope" },
{ "keys": ["alt+enter"], "command": "find_use" },
{ "keys": ["f", "f", "e"], "command": "expand_fqcn" },
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
@CristianLlanos
CristianLlanos / .gitconfig
Last active January 14, 2016 20:25
My git config file
[user]
name = Cristian Llanos
email = [email protected]
[core]
editor = /usr/bin/vim
excludesfile = /home/cristian/.gitignore_global
[alias]
# Aliases
aliases = "!git config --list | grep alias | cut -c 7-"
@CristianLlanos
CristianLlanos / undo.sh
Last active August 30, 2016 03:37
Undoing things with Git
# Undo commit (it does not delete your changes)
git reset --soft HEAD~1
# Undo add (it does not delete your changes, only unstages them -> red color)
git reset --mixed
# Save changes to a temporary commit (takes out your changes for a while)
git stash
# change branch
git checkout <branch_name>
# restore changes on a branch (fetches your changes)
git stash pop
@CristianLlanos
CristianLlanos / uri.js
Created October 15, 2015 19:05 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
{
"folders":
[
{
"folder_exclude_patterns":
[
".git",
".idea"
],
"file_exclude_patterns": [],
@ECHO OFF
SETLOCAL
::
:: Sets up Laravel elixir starter project
::
:: Assumed you have already installed:
:: - NodeJS
:: - Python 2.7
:: - Git
::