This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DEFINITIONS | |
trait DiscountCode { | |
def getValue: Double | |
} | |
trait Adapter[E] { | |
def updateAndReturnEntity(entity: E, amount: Double): E | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface DatabaseDriver { | |
public function save(string $data); | |
} | |
abstract class AbstractPersistence { | |
private $driver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("Test!!!!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("Test!!!!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rates": [ | |
{ | |
"name": "Standard Shipping", | |
"code": "standard", | |
"price": 0.00, | |
"price_merchant": 14.15, | |
"currency": "BRL", | |
"type": "ship", | |
"min_delivery_date": "2016-07-14T14:48:45-0300", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
local LAMBDA="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)" | |
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="cyan"; fi | |
# Git sometimes goes into a detached head state. git_prompt_info doesn't | |
# return anything in this case. So wrap it in another function and check | |
# for an empty string. | |
function check_git_prompt_info() { | |
if git rev-parse --git-dir > /dev/null 2>&1; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" setting up plugin manager | |
call plug#begin('~/.vim/plugged') | |
" basic linux commands inside editor | |
Plug 'tpope/vim-eunuch' | |
" auto close parenthesis, brackets, quotes, etc... | |
Plug 'jiangmiao/auto-pairs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function is_repo_dirty { | |
local dir=$(pwd) | |
[[ -n $1 ]] && dir=$1 | |
[[ -n $(git status --porcelain 2> /dev/null | tail -n1) ]] && return | |
false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT_COMMITTER_DATE="`date -jR -vFebm -v16d -v12H -v29M`" git commit --date "`date -jR -vFebm -v16d -v12H -v29M`" -m "first commit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.40253299474716187</real> |
NewerOlder