Skip to content

Instantly share code, notes, and snippets.

@cheezedigital
cheezedigital / practice, and practice
Created January 20, 2015 14:59
proper work flow for git and github
git fetch
git checkout -b cl-### origin/sprint015
To commit your changes:
git add .
git commit -am "Commit message"
git push origin cl-###
To create pull request:
@cheezedigital
cheezedigital / local
Last active August 29, 2015 14:13
workflow to date.
typically, I start the morning off with:
$ cd cls3/
move to whichever/or create branch
$ git fetch
$ git pull origin master
bundle
$ mysql.server start
$rails s
@cheezedigital
cheezedigital / testing
Last active August 29, 2015 14:13
holler at yer boy
I'm looking to do small testing on a sinatra app I've been building.
https://github.com/cheezedigital/itempiece6
I'd like the test to be small, though I'd like to test every page in the application.
like,
test "should get about" do
get :about
this file was taken from a rails application, and what I'm trying to do is test just like below, but in a sinatra application. new to learning how to think, but totally understand what's happening here in the static_pages_controller_test.rb file. is there a particualr gem i can install which will generate the proper files for testing out the sinatra application?
here is the sinatra application: https://github.com/cheezedigital/itempiece6
here is the file from a rails application I'm doing via a tutorial on the webs n shit.
require 'test_helper'
class StaticPagesControllerTest < ActionController::TestCase
test "should get home" do
// first download the swt jar, in this instance to "swt/win32.jar"
// then compile like javac -cp swt/win32.jar TextEditor.java
// then run like java -cp .;swt/win32.jar TextEditor
import java.io.IOException;
import java.io.InputStream;
import java.util.ResourceBundle;
import java.util.Vector;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ExtendedModifyEvent;
Last login: Wed Sep 24 20:20:53 on ttys000
~$ ls
Applications/ Documents/ Dropbox/ Movies/ Pictures/ Sites/ justin/ project/ temp/
Desktop/ Downloads/ Library/ Music/ README.md app/ mystuff/ projects/ testproject/
~$ rvm install 2.1.2
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.2.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
cat ~/.ssh/id_rsa.pub
paste into terminal.
return given
properly trying to merge a branch -
ex: I'm currently working on a bracnch called testing.
1. git status
2. git add file
3. git commit -m "throw in a nice message"
4. git push origin testing.
git checkout (whatever branch)
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
  1. What does MVC stand for? model. view. controller.
  2. What is the purpose of MVC? orgainzation
  3. What is the command you would use to generate a new rails application called "twitter"? rails new twitter
  4. Which file do you edit to add additional gems to your rails app? gemfile
  5. What is the purpose of .gitignore file? tracked files, but tells git which files to ignore.
  6. What is the app/assets folder used for?