Skip to content

Instantly share code, notes, and snippets.

View ritcheyer's full-sized avatar
🏠
Working from home

Eric Ritchey ritcheyer

🏠
Working from home
  • E&J Design
  • Lincoln, CA
View GitHub Profile
@ritcheyer
ritcheyer / gulpfile.js
Created November 13, 2015 21:22 — forked from samuelhorn/gulpfile.js
My gulpfile for new projects
/*******************************************************************************
1. DEPENDENCIES
*******************************************************************************/
var gulp = require('gulp'); // gulp core
sass = require('gulp-sass'), // sass compiler
uglify = require('gulp-uglify'), // uglifies the js
jshint = require('gulp-jshint'), // check if js is ok
rename = require("gulp-rename"); // rename files
concat = require('gulp-concat'), // concatinate js
var path = require('path'),
gulp = require('gulp'),
sass = require('gulp-sass'),
notify = require('gulp-notify'),
plumber = require('gulp-plumber'),
sourcemaps = require('gulp-sourcemaps'),
livereload = require('gulp-livereload'),
paths = [
'./node_modules/breakpoint-sass/stylesheets',
'./node_modules/susy/sass',
@ritcheyer
ritcheyer / dash-listen-3.py
Created August 21, 2015 17:22 — forked from eob/dash-listen-3.py
for hacking an Amazon Dash to record poops and stuff
from scapy.all import *
import requests
import time
MAGIC_FORM_URL = 'http://put-your-url-here'
def record_poop():
data = {
"Timestamp": time.strftime("%Y-%m-%d %H:%M"),
"Measurement": 'Poopy Diaper'
}
{
"always_show_minimap_viewport": true,
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"draw_minimap_border": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
/*doc
---
title: Forms
name: Forms
category: formsintro
---
Form elements should follow a consistent pattern. The basic structure is pretty straightforward.
@ritcheyer
ritcheyer / billionmiles.html
Created July 13, 2015 22:32
Billion Miles Table of Events
<table class="table-framework">
<thead class="table-head">
<tr class="table-row">
<th class="row-date">Date</th>
<th class="row-location">Location</th>
<th class="row-rsvp">RSVP</th>
</tr>
</thead>
<tbody class="table-body">
<tr class="table-row">
title name category
Tables
Tables
Tables

Tables are integral. Tables are good. Tables need love too.

NameVirtualHost *:80
<Directory "/Users/eritchey/bin/tesla/6/drupal/">
Allow From All
AllowOverride All
Options +Indexes
</Directory>
<VirtualHost *:80>
ServerName "d6.teslamotors.com"
DocumentRoot "/Users/eritchey/bin/tesla/6/drupal"
<?php
/**
* Implements hook_preprocess_html
*/
function tesla_charge_card_html(&$variables) {
if(current_path() == 'creditapp') {
$variables["html_tag_classes"] .= 'footer-fixed ';
}
}
@ritcheyer
ritcheyer / support.html.php
Last active August 29, 2015 14:23
support.html.php
<?php
/**
* WEB-24978
* Show a max of 6 items
* If there are less than 6 items in any of the node queues, that becomes
* the max number that is displayed
*
* If there are more line items in any of the nodequeues beyond the maximum
* that should be shown, the extra ones are hidden.
*