Skip to content

Instantly share code, notes, and snippets.

View vinicius5581's full-sized avatar
:octocat:
Chilling

Vinicius Santana vinicius5581

:octocat:
Chilling
View GitHub Profile
@vinicius5581
vinicius5581 / .bash_profile
Last active November 10, 2016 19:17
.bash_profile
export PATH=/usr/local/bin:$PATH
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
@vinicius5581
vinicius5581 / .bashrc
Created November 10, 2016 19:17
My personal .bashrc
#PS1="$(tput setaf 166)\t - $(tput setaf 166)\u$(tput setaf 228)@\h $(tput setaf 71)\W -> $(tput sgr0)";
orange=$(tput setaf 166);
yellow=$(tput setaf 228);
green=$(tput setaf 71);
white=$(tput setaf 15);
bold=$(tput bold);
reset=$(tput sgr0);
COLOR_RED="\033[0;31m"
COLOR_YELLOW="\033[0;33m"
@vinicius5581
vinicius5581 / bash-cheatsheet.sh
Created November 11, 2016 18:23 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
http://localhost/apiservices/v1/launch/onboard?p=2W35N0x3mQq3NCLCx4ccMe6fCyRI2t36wmaa7BN9lrx4zOpR7adeKvj53N1MOopE
# update your local master branch
git checkout master
git pull --rebase
# never do any work on master branch
# create & switch to new branch instead
git checkout -b my_branch
# rebase 'my_branch' onto master
git checkout my_branch
// Requirements:
// There are two types of pages on my project and they can only bee seen if the user is logged in.
// Some pages requires the user to have site.docs permissions and the other require the user to
// have site.staff permissions in order to see the pages.
// I expect the same behavior on my menu and I would like the menu items (links to the pages)
// to be visible only if the user has the proper permissions.
// The following code is showing all menu links to the users with side.docs permissions.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@vinicius5581
vinicius5581 / The Technical Interview Cheat Sheet.md
Created September 28, 2017 17:02 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@vinicius5581
vinicius5581 / vanilla-js-cheatsheet.md
Created October 10, 2017 01:31 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet

#HTML presentation tools

There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.

##CSSS

CSS-based SlideShow System