Skip to content

Instantly share code, notes, and snippets.

Luciano Longo Cosmicist

Block or report user

Report or block Cosmicist

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

Keybase proof

I hereby claim:

  • I am Cosmicist on github.
  • I am cosmicist ( on keybase.
  • I have a public key whose fingerprint is 253C 1968 6A34 0457 043E 86B1 28F2 3987 953D A25C

To claim this, I am signing this object:

Cosmicist / gist:834f03acf52566690950
Created Dec 18, 2015 — forked from robotslave/gist:4633393
How to get Emoji in your Ubuntu Terminal
View gist:834f03acf52566690950
1. Download the Android Jelly Bean fonts and the Symbola font:
2. unzip the files and put AndroidEmoji.ttf and Symbola.ttf (and any of the other fonts that strike your fancy)
in your ~/.fonts/ directory
3. run `fc-cache -f`. You can check to make sure the new fonts
were installed with `fc-list`. You'll probably want to grep the copious output for Symbola or Emoji
Cosmicist / Git branch bash autocomplete *with aliases*
Created Nov 30, 2015 — forked from JuggoPop/Git branch bash autocomplete *with aliases*
Git branch bash autocomplete *with aliases* (add to .bash_profile)
View Git branch bash autocomplete *with aliases*
# To Setup:
# 1) Save the .git-completion.bash file found here:
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect:
# Git branch bash completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
# Add git completion to aliases
Cosmicist / scroller.js
Last active Sep 9, 2017 — forked from dezinezync/scroll.easing.js
Vanilla Javascript Scrolling function for easing based scrolling
View scroller.js
var Scroller = function(anchors, config)
var cfg = compile({
duration: 1000,
offset: 0,
easing: Scroller.easing.inOutQuad,
callback: function() {}
}, config);
[], function(anchor) {
Cosmicist / specification.tpl
Last active Sep 4, 2015 — forked from greydnls/specification.tpl
PHPSpec Laravel template php5
View specification.tpl
namespace %namespace%;
use PhpSpec\Laravel\LaravelObjectBehavior as ObjectBehavior
use Prophecy\Argument;
class %name% extends ObjectBehavior
function it_is_initializable()
View uri.js
var parser = document.createElement('a');
parser.href = "";
parser.protocol; // => "http:"
parser.hostname; // => ""
parser.port; // => "3000"
parser.pathname; // => "/pathname/"; // => "?search=test"
parser.hash; // => "#hash"; // => ""
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt
Cosmicist / flatline.zsh-theme
Created Feb 21, 2014
My zsh theme (should be saved in ~/.oh-my-zsh/themes)
View flatline.zsh-theme
PROMPT='%{$fg_bold[grey]%}%n%p:%{$fg[green]%}%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}
%{$fg_bold[red]%}➜ %{$reset_color%} '
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}} %{$fg[red]%}×%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}} %{$fg[green]%}✓%{$reset_color%}"
View gist:8587303
git branch newbranch
git reset --hard HEAD~3
git checkout newbranch
Cosmicist / gist:8459515
Created Jan 16, 2014
Log Laravel queries with bindings in place
View gist:8459515
Event::listen('illuminate.query', function($query, $bindings, $time, $name)
$data = compact('bindings', 'time', 'name');
// Format binding data for sql insertion
foreach ($bindings as $i => $binding)
if ($binding instanceof \DateTime)
You can’t perform that action at this time.