Skip to content

Instantly share code, notes, and snippets.

View daino3's full-sized avatar

Dain Hall daino3

  • SpotOn, Inc
  • Chicago, Il
View GitHub Profile
@daino3
daino3 / index.html
Created October 17, 2013 14:59 — 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>
@daino3
daino3 / zoo.js
Created October 17, 2013 15:48 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@daino3
daino3 / form-validator.js
Created October 17, 2013 17:09 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
$(function(){
//Your code...
});
@daino3
daino3 / carousel.js
Last active December 25, 2015 19:59 — forked from ksolo/carousel.js
Image Carousel
@daino3
daino3 / index.html
Created October 23, 2013 01:12 — 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>
@daino3
daino3 / karma.rake
Last active November 3, 2015 16:09
require 'pry'
namespace :karma do
task :start => :environment do
with_tmp_config :start
end
task :run => :environment do
exit with_tmp_config :start, "--single-run"
end
module.exports = function(config) {
config.set({
// base path
basePath: './',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
Rails.application.configure do
# http://stackoverflow.com/questions/29417328/how-to-disable-cannot-render-console-from-on-rails
config.web_console.whitelisted_ips = '10.0.2.2'
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
module.exports = function(config) {
config.set({
// base path
basePath: './',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})
options[:renderer] ||= BootstrapLinkRenderer
super.try :html_safe
end
class BootstrapLinkRenderer < LinkRenderer
protected