Skip to content

Instantly share code, notes, and snippets.

View GirlBossRush's full-sized avatar
Building web apps with OpenAI!

Teffen Ellis GirlBossRush

Building web apps with OpenAI!
View GitHub Profile
@GirlBossRush
GirlBossRush / gist:1243206
Created September 26, 2011 19:46
nginx conf
server {
listen 80;
server_name nirri.us www.nirri.us nirrius.com www.nirrius.com;
access_log <%= node[:nginx][:log_dir] %>/localhost.access.log;
location / {
proxy_pass http://127.0.0.1:3000/;
proxy_redirect default;
}
server {
listen 80;
server_name localhost;
root /home/www-server/redacted/site/refinerycms/nirrius/public;
passenger_enabled on;
}
@GirlBossRush
GirlBossRush / graph_imp.rb
Created November 2, 2011 23:27
Graph Implementation (work test 1)
require 'set'
require 'test/unit/assertions'
include Test::Unit::Assertions
class Graph
def initialize
@list = Hash.new
end
attr_accessor :list
@GirlBossRush
GirlBossRush / scheme_stuff.scm
Created November 17, 2011 04:05
Scheme stuff
(define sigma
(lambda (a form next b)
(if (> a b)
0
(+ (form a) (sigma (next a) form next b)))))
(define sumsq
(lambda (m n)
(sigma m (lambda (k) (* k k)) (lambda (k) (+ k 1)) n)))
@GirlBossRush
GirlBossRush / index.html
Created November 17, 2011 07:45
Cockeyed.com simplification
<html>
<head>
<title>Cockeyed.com: Always Bring Your Camera</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</head>
<body>
<header>
<div class="ad-bar">
<img src="images/ad_chunk_top.jpg">
</div>
@GirlBossRush
GirlBossRush / base.scss
Created November 17, 2011 07:47
Cockeyed.com mock stylesheet.
@import "compass/css3";
html, body {
margin: 0 0 0 0;
padding: 0 0 0 0;
background: #fff;
width: 100%;
height: 100%
color: #333;
}
@GirlBossRush
GirlBossRush / layout.css
Created November 21, 2011 23:04
Fixed Background
body {
background-color: rgb(255, 255, 255);
color: rgb(45, 45, 45);
background-image: url("http://crimsonbakery.com/wordpress/wp-content/themes/crimson/images/bg-beverage.jpg");
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: right bottom;
}
@GirlBossRush
GirlBossRush / tabletop.rb
Created December 23, 2011 05:12
Objected oriented table top games written in Ruby
# -*- encoding : utf-8 -*-
# A simple game of Blackjack using object oriented programming
require 'colorize'
require 'set'
class Card
def initialize(face, suit, value)
@face = face
@suit = suit
@GirlBossRush
GirlBossRush / gist:1773582
Created February 8, 2012 20:46
Weather execption
012-02-08T18:41:08+00:00 app[web.1]: Exception parsing
2012-02-08T18:41:08+00:00 app[web.1]: Position: 1365
2012-02-08T18:41:08+00:00 app[web.1]: Line: 1
2012-02-08T18:41:08+00:00 app[web.1]: Last 80 unconsumed characters:
2012-02-08T18:41:08+00:00 app[web.1]: <city data="Belfort, Franche-Comt?"/>):
2012-02-08T18:41:08+00:00 app[web.1]: 11: <% calendar_days.each do |day| %>
2012-02-08T18:41:08+00:00 app[web.1]: 12: <td class="<%= day.day_of_week %>">
2012-02-08T18:41:08+00:00 app[web.1]: 13: <figure class='weather'>
2012-02-08T18:41:08+00:00 app[web.1]: 15: <figcaption class='temperature'><%= day.weather.display_temperatures %></figcaption>
2012-02-08T18:41:08+00:00 app[web.1]: 14: <div class='report <%= day.weather.category_for :forecast_condition %>' title='<%= day.weather.forecast_condition %>'><%= day.weather.forecast_condition %></div>
➜ Abriiz-Rails git:(acceptance) git push staging acceptance:master
Counting objects: 265, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (66/66), done.
Writing objects: 100% (160/160), 20.77 KiB, done.
Total 160 (delta 116), reused 128 (delta 94)
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.rc.7