git init
Creates a new git repository in the directory
git add <file name>
Adds a specific file to staging
git add .
orgit add -A
Adds the full directory and its contents to staging
const familyNames = ["Jordan", "Tiffany", "Kristine"]; | |
// let capitalizedNames: string[] = []; | |
// for (var i = 0; i < familyNames.length; i++) { | |
// capitalizedNames.push(familyNames[i].toUpperCase()) | |
// } | |
// console.log(capitalizedNames) |
type EmployeeType = { | |
email: string; | |
roles?: string[]; | |
} | |
let data: {employees?: EmployeeType[]}; | |
data = { | |
employees: [ | |
{email: "test@example.com", roles: ["admin", "superAdmin"]}, |
{} |
import operator | |
from functools import reduce | |
def flexible_counter(collection, op): | |
operators = { | |
"+": operator.add, | |
"-": operator.sub, | |
"*": operator.mul, | |
"/": operator.truediv, | |
} |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
} | |
/* | |
##Device = Laptops, Desktops |
### Generate an array of numbers, from 1 to 10: | |
(1..10).to_a | |
# => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
### Generate an array of letters from 'a' to 'g': | |
("a".."g").to_a | |
# ⇒ ["a", "b", "c", "d", "e", "f", "g"] | |
### Generate an array of double letters from 'aa' do 'gg': | |
("a".."g").to_a.map {|i| i * 2} |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" source ~/.vimrc.before if it exists. | |
if filereadable(expand("~/.vimrc.before")) | |
source ~/.vimrc.before | |
endif | |
" ================ General Config ==================== |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>HTML CSS Animated Text</title> | |
<link rel="preconnect" href="https://fonts.gstatic.com" /> |
alias -g subl=subl | |
PATH=$PATH:/usr/local/bin/; export PATH | |
export PATH=/usr/local/heroku/bin | |
# Exports {{{ | |
export GITHUB_USER="yourgithubusername" | |
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin # Reorder PATH so local bin is first | |
export PATH=$PATH:$HOME/anaconda/bin | |
export GREP_OPTIONS='--color=auto' | |
export GREP_COLOR='1;32' |