Skip to content

Instantly share code, notes, and snippets.

View colinrubbert's full-sized avatar

Colin Rubbert colinrubbert

View GitHub Profile
class Madlib
attr_accessor(:sen, :adj)
def initialize
@sen
@adj
end
# Used to test that the arrays are functional
@colinrubbert
colinrubbert / .rb
Created September 14, 2015 15:15
Code Examples
#### Code Examples From Group Capstone Chess Application
## This determines whether or not a King's move is valid
def valid_move?(x_destination, y_destination)
x_distance = (x_coordinates - x_destination).abs <=1
y_distance = (y_coordinates - y_destination).abs <=1
x_distance && y_distance
end
@colinrubbert
colinrubbert / gist:f78aad58510729407c76
Last active September 26, 2015 02:21
HelloSign requests
# This is triggered after the 'Create Embedded Signature" button is triggered.
Started POST "/signatures" for 71.86.204.50 at 2015-09-25 21:07:56 -0500
Cannot render console from 71.86.204.50! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SignaturesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"mcBNHGofm+6ojR6fr3NpKYFONqIhhAE4x9NCyylOUeJaGzJ7231HVHD1vfqIx0Sr/f6GIJKOLmhZ531J/j5J2Q==", "name"=>"tony bennett", "email_address"=>"[email protected]", "business_name"=>"Singer", "commit"=>"Create Embedded Signature Request"}
Rendered signatures/embedded_signature.html.erb within layouts/application (0.1ms)
Rendered layouts/_header.html.erb (0.7ms)
Rendered layouts/_alerts.html.erb (0.1ms)
Completed 200 OK in 2121ms (Views: 124.0ms | ActiveRecord: 0.0ms)

Web Design Contract (open-source)

Between [your name] and [their name]

Summary:

You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.

What do both parties agree to do?

#!/bin/bash
# Script file for install Ruby, Rails, and
# other web development features for new system
# setups. This is most focused for Bash on Windows
# so there will not be sql dbs installed with
# this script.
# Update packages & Install Pre-requisite packages
sudo apt-get update
@colinrubbert
colinrubbert / ruby_dependencies.sh
Last active June 15, 2017 21:45
Install Ruby Dependencies
sudo apt-get update && sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties software-properties-common libffi-dev nodejs
@colinrubbert
colinrubbert / postgresql.conf
Created June 16, 2017 21:47
Dockerfile edited posgres conf file
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@colinrubbert
colinrubbert / Dockerfile
Created June 18, 2017 23:47
Dockerfile for Ruby on Rails development environment.
# Core image
FROM ubuntu:17.04
# Install dependencies
RUN apt-get update && apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties software-properties-common libffi-dev nodejs
# Install Ruby
RUN apt-get update && apt-get install -y ruby ruby-dev ruby-bundler
RUN rm -rf /var/lib/apt/lists/*
RUN echo $(ruby -v)

Resources

  1. Design
    • Colors
    • Typography
    • Icons
    • Backgrounds
    • Graphic Design
    • Illustrations
  • Toolkits
{
"terminal.integrated.shell.windows": "C:\\WINDOWS\\sysnative\\bash.exe",
"workbench.colorTheme": "Panda Syntax",
"editor.tabSize": 2,
"editor.wordWrap": "on",
"emmet.includeLanguages": {
"HTML (Eex)": "html"
}
}