Skip to content

Instantly share code, notes, and snippets.

@teeerevor
teeerevor / cloudSettings
Last active November 6, 2019 01:26
vscode settings
{"lastUpload":"2019-11-06T01:26:13.164Z","extensionVersion":"v3.4.3"}
@teeerevor
teeerevor / index.html
Last active September 5, 2018 11:53
Psychwire App about page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500" rel="stylesheet">
<style type="text/css">
body {
font-family: Montserrat, verdana, sans-serif;
font-weight: 300;
background-color: transparent;
@teeerevor
teeerevor / branding_updater_spec.rb
Created July 24, 2013 05:54
branding_updater.rb
require 'spec_helper'
#require 'branding_updater'
#BrandingElement.where(branding_type: 'SponsorBanner').select{|be| be.html_content =~ /<div/ }
class BrandingUpdater
def self.update_branding(branding_elements=[])
html_sanatizer = HTML::FullSanitizer.new
branding_elements.each do |element|
if element.branding_type == 'SponsorBanner'
if element.html_content =~ /<div/
@teeerevor
teeerevor / gist:1449589
Created December 9, 2011 01:02
profile
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w \$(parse_git_branch)\$ "
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
alias gst='git status'
alias gpl='git pull'
@teeerevor
teeerevor / league.rb
Created October 24, 2011 09:14
Team#result refactor
Moved to League. Stats now updated by module, which is mixed into LeagueStats, TeamStats etc
class League < ActiveRecord::Base
...
def result(game)
team_result(game, game.team1, game.team1_score, game.team2_score)
team_result(game, game.team2, game.team2_score, game.team1_score)
end
@teeerevor
teeerevor / .vimrc
Created September 16, 2011 23:54
.vimrc
set nocompatible " be iMproved
filetype off " required!
colorscheme ir_black
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Basically its about brute forcing our side projects into shape.
if its your project you're the Boss (Boss suplies beer and pizza)
Boss lists his top 5 (issues|work items|designs|ideas|whatevers) and workers... Get to work on them.
Boss can be challenged over an issue if a worker disagrees, Then we have scrum/session (but not like the shitty FF "scrums"),
Both sides present their views and the workers vote. But at the end of the day its the Boss's project so if he feels
it's best to do it his way, then Boss man wins.