Skip to content

Instantly share code, notes, and snippets.

View paulnicholsen27's full-sized avatar

Paul Nicholsen paulnicholsen27

View GitHub Profile
# Array Practice
## Practice with Integers
Integers - an array from 0 to 100:
```
(0..100).to_a
```
require 'bundler/setup'
Bundler.require
require_rel '../app'
describe "Challenge" do
before(:all) do
@customer1 = Customer.new("Bob", "Bobbington")
@customer2 = Customer.new("Mary", "Maryberg")
@customer3 = Customer.new("Bob", "SomeoneElse")
## The names of those who have gone before you
| Cohort | Name |
| ------------------ | ------------------------------- |
| DC Web 082718 | Puts rspec on my :name
| Houston Web 082718 | Boolean Icing (but the chant to exit feelings is "Fork Repos Git Money"; inside-joke stuff)
| Dumbo Web 080618 | Kiss My Hash
| NY Web 080618 | RSpec the Wealth
| DC Web 071618 | Good Migrations
require 'bundler/setup'
Bundler.require
require_rel '../app'
describe "Challenge" do
before(:all) do
@customer1 = Customer.new("Bob", "Bobbington")
@customer2 = Customer.new("Mary", "Maryberg")
@customer3 = Customer.new("Bob", "SomeoneElse")
$default-has-layout-approach: "block";
@import "compass";
@import "theatlantic/css/variables";
@import "theatlantic/css/article-styles";
$facebook-color: #3d5ba8;
$twitter-color: #55acee;
body {
font-family: $serif;
@paulnicholsen27
paulnicholsen27 / 0_reuse_code.js
Created January 20, 2016 15:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{
"role": "container",
"layout": {
"minimumHeight": 150
},
"style": {
"fill": {
"URL": "bundle://spacebeyond.jpg",
"fillMode": "cover",
"type": "image"
<div class="full-width main-graphic" id="interactive" style="text-align:center; padding: 40px 0; width:100%; -webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);"><!-- Ad Tags for Qualcomm 2 - Desktop --><!-- Base size of ad: 1024x780 --><!-- Placements: 1 --><!-- Placement: Qualcomm 2 - Desktop #1 --><!-- Placement ID: c069bddc-ef69-4ff6-abe0-ad0d0a4bde77 --><!-- Placement Size: 1024x780 --><!-- Ad Server: NONE --><script>
(function() {
var guid = "c069bddc-ef69-4ff6-abe0-ad0d0a4bde77", o = window, r = "", m, s = "http:", e = encodeURIComponent, x = 0, f = document.createElement("script");
o.FLITE=o.FLITE || {};
o.FLITE.config = o.FLITE.config || {};
o.FLITE.config[guid] = o.FLITE.config[guid] || {};
if (st > lastScrollTop){
// downscroll code
$(".test-sticky_nav-hide #site-header-container").addClass(
"hide", 4000);
} else {
// upscroll code
$(".test-sticky_nav-hide #site-header-container").removeClass(
"hide", 4000);
}
File "/Volumes/www/Atlantic-CMS/bin/../apps/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Volumes/www/Atlantic-CMS/src/django/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/Volumes/www/Atlantic-CMS/src/django/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Volumes/www/Atlantic-CMS/src/django/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Volumes/www/Atlantic-CMS/src/django/django/core/management/base.py", line 231, in execute
self.validate()