Skip to content

Instantly share code, notes, and snippets.

@cheezedigital
cheezedigital / .git_completion
Created May 21, 2014 23:15
This is a required dot file to have Git auto completes. After downloading this file, you need to make changes to your .bash_profile.
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
  1. What is the difference between a local variable, and an instance variable? local to local, and instance to where ever
  2. What is the datatype of "DevPoint Labs"? string
  3. Assign the number 10 to the local variable n. N = 10
  4. Assign your name to the local variable name. name = "justin"
  5. What is an Array? a collection of data with a 0 based index
  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?
<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>
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)
cat ~/.ssh/id_rsa.pub
paste into terminal.
return given
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.....
// 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;
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
@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