Skip to content

Instantly share code, notes, and snippets.

@zassmin
zassmin / instructions.md
Last active May 14, 2020 01:00
Git/Github team open source workflow instructions

do as often as possible, when you start work on a project

  • git pull -- from master

new work associated with one issue

  • create a new branch, git checkout -b new_branch_name
  • commit to that branch
  • push branch to github git push -u origin new_branch_name
  • as you are working on your branch, rebase it with master:
    • pull master first by going to the master branch git checkout master
  • git pull --- from master
--using your terminal
first make sure you have a default editor environment
echo $EDITOR
if not, set your default editor environment
export EDITOR="subl -w"
open up that source code!
bundle open bcrypt-ruby
## when psql goes down
## my computer crashed and it crashed psql
## these are the traces
## I had to remove the postmaster.pid file that had the fatal crashing errors for psql
## then I restarted it :)
cd /usr/local
cd var/postgres/
less server.log
o = {a: 1}
Object {a: 1}
function A(a) { this.a = a}
undefined
var a1 = new A(1)
undefined
a1.a
1
function A(a) {
this.a = a;
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
@zassmin
zassmin / index.html
Last active December 19, 2015 21:08 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
$num_in_words = {
100000 => 'million',
1000 => 'thousand',
100 => 'hundred',
90 => 'ninety',
80 => 'eighty',
70 => 'seventy',
60 => 'sixty',
50 => 'fifty',
40 => 'forty',
class Vehicle
attr_accessor :status, :color, :wheels, :num_seats, :speed, :tank_filled
def initialize(args = {})
@color = args[:color] || 'blue'
@num_seats = args[:num_seats] || 5
@wheels = args[:wheels] || 4
@speed = args[:speed] || 'normal'
@tank_filled = args[:tank_filled] || true
http://repl.it/languages/JavaScript
https://dl.dropboxusercontent.com/u/10998095/javascript-june29/slides/objectsdom.html
https://dl.dropboxusercontent.com/u/10998095/javascript-june29/exercises/dom.html
https://dl.dropboxusercontent.com/u/10998095/javascript-june29/index.html
class RPNCalculator
def evaluate(string)
operators = string.split.map {|e| e.match(/\d/) ? e.to_i : e.to_sym}
if operators.length == 1
return operators.join("").to_i
end
num = []
operators.collect do |element|
case element