Skip to content

Instantly share code, notes, and snippets.

View keccers's full-sized avatar

Katherine Champagne keccers

View GitHub Profile
@keccers
keccers / Sample.rb
Created December 13, 2013 21:39
DOL Ruby SDK example
#import the GOVDataSDK file into your sample project.
require './GOVDataSDK'
#Create a new object and call the extend data set.
API_HOST = 'http://api.dol.gov'
API_KEY = 'c789a707-76b6-470e-8e94-a9bfb9d9a7d6'
API_SECRET = 'bosses_office'
API_URI = 'V1'
API_DATA = 'article/xml'
@keccers
keccers / walker.php
Created November 12, 2013 19:04
Walker! Throw in functions.php
class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu{
function start_lvl(&$output, $depth){
$indent = str_repeat("\t", $depth); // don't output children opening tag (`<ul>`)
}
function end_lvl(&$output, $depth){
$indent = str_repeat("\t", $depth); // don't output children closing tag
}
function start_el(&$output, $item, $depth, $args){
@keccers
keccers / map-test.html
Last active December 25, 2023 19:15
Google Maps Custom Zoom Controls
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Custom Controls Test</title>
@keccers
keccers / fizzbuzz.rb
Created August 1, 2013 03:35
OO Ruby FizzBuzz
class FizzBuzz
attr_reader :limit, :sequence
def initialize(limit)
@limit = limit
@sequence = []
end
def display
//------------------------------------------------------------------------------------------------------------------
// 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.
//------------------------------------------------------------------------------------------------------------------
@keccers
keccers / index.html
Created July 25, 2013 13:11 — 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>
@keccers
keccers / gist:6054664
Created July 22, 2013 15:17
Console Hacking Socrates Commands We Ran In The Console To Turn Ryan Into Channing Tatum.
IMAGE :: http://minus.com/lYI4VDDjVPFMP
$('.user img')
[
<img alt=​"Ryan Burbank" src=​"https:​/​/​secure.gravatar.com/​avatar/​c1f0cf425187945fdd8ba611bbdab570.png?r=PG&d=mm&s=150" title=​"Ryan Burbank">​
]
$('.user img src')
[]
$('.user img).html
/* 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.
*/

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
@keccers
keccers / index.html
Last active December 19, 2015 19:18 — 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>