Skip to content

Instantly share code, notes, and snippets.

View boovius's full-sized avatar

Joshua Book boovius

  • Self / Frequency Machine
  • Los Angeles
View GitHub Profile
@boovius
boovius / App.tsx
Last active July 6, 2022 23:18
Cerca - Pendo RN integration
const App = ({
user, toggleUser, logout, hasSeenOnboarding, loaded, pending, dispatch, playbackFinished
}: Props) => {
// irrelvant code removed
return (
<Provider store={store}>
<CercaNavigationContainer>
{loaded ? (
source "/Users/joshuabook/.colors.theme.bash"
source "/Users/joshuabook/.base.theme.bash"
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" |"
SCM_THEME_PROMPT_SUFFIX="${green}|"
GIT_THEME_PROMPT_DIRTY=" ${red}✗"
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
@boovius
boovius / .base.theme.bash
Created May 3, 2015 00:56
base bash prompt
#!/usr/bin/env bash
THEME_PROMPT_HOST='\H'
SCM_CHECK=${SCM_CHECK:=true}
SCM_THEME_PROMPT_DIRTY=' ✗'
SCM_THEME_PROMPT_CLEAN=' ✓'
SCM_THEME_PROMPT_PREFIX=' |'
SCM_THEME_PROMPT_SUFFIX='|'
@boovius
boovius / bash colors
Created May 3, 2015 00:55
super sweet bash colors
#!/usr/bin/env bash
function __ {
echo "$@"
}
function __make_ansi {
next=$1 && shift
echo "\[\e[$(__$next $@)m\]"
}
@boovius
boovius / custom aliases
Created April 6, 2015 18:52
custom aliases
# if using bash_it
# this file should go in ~/.bash_it/aliases/custom.aliases.bash
# tree
alias tree='tree -I vendor' # show tree without vendor
# sublime
alias subl='open -a "sublime text"'
# bundler
[user]
name = [YOUR NAME]
email = [YOUR EMAIL - GITHUB]
[alias]
ci = commit
st = status --short --branch -u
di = diff
co = checkout
br = branch
b = branch
@boovius
boovius / vimrc
Last active November 28, 2016 04:03
set t_Co=16
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()
Bundle 'gmarik/vundle.vim'
# This 'fixes' running xcodebuild in tmux and requires
# `brew install reattach-to-user-namespace`
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "reattach-to-user-namespace -l bash"
# action key
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# path:
PS1='\[\e[0;33m\]⚡\[\e[m\] \[\e[0;31m\]${PWD##*/}\[\e[m\] '
# general shorcuts
alias ll="ls -lahG"
alias reload="source ~/.profile"
alias up="cd .."
alias back="cd -"
alias desktop="cd ~/Desktop"
alias server="python -m SimpleHTTPServer"
@boovius
boovius / animating squares right and left
Created March 1, 2013 00:35
Based off of Events and Scope video ... trying to get it so that it understands if the margin is greater than where it starts (5px) it will call the moveBack() function. This works but if someone clicks on a square twice before the animation has completed, it won't respond, since the margin-right must = 100px for the moveBack() to be called. Is …
$(function(){
console.log(this);
function moveRight(el) {
$(el).animate({marginRight: 100 }, 1000);
}
function moveBack(el) {
$(el).animate({marginRight: 5 }, 1000 );