Skip to content

Instantly share code, notes, and snippets.

View tapickell's full-sized avatar
🌴
Just happy to be here

Todd Pickell tapickell

🌴
Just happy to be here
View GitHub Profile
@tapickell
tapickell / new.html.erb
Created April 8, 2013 00:04
ERB: Sign IN
<h1>Sign in</h1>
<div class="row">
<div class="span6 offset3">
<%= form_tag sessions_path do |f| %>
<%= label_tag :email %><br />
<%= text_field_tag :email, params[:email] %>
<%= label_tag :password %><br />
<%= password_field_tag :password %>
@tapickell
tapickell / phonegapGist.html
Created April 18, 2013 15:42
my button and label (for lack of a better term) in the html file and my corresponding js file
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.1.min.css" />
<script type="text/javascript" charset="utf-8" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.mobile-1.3.1.min.js"></script>
<title>Hello World</title>
<!DOCTYPE html>
<html>
<body>
<p>A script on this page starts this clock:</p>
<p id="demo"></p>
<script>
var myVar=setInterval(function(){myTimer()},1000);
@tapickell
tapickell / about_scoring_project.rb
Created May 18, 2013 23:05
greed game after refactoring
class DiceParser
def initialize(dice)
@dice = dice
@singles = []
end
def parse
@groups = self.group_sets
self.split_groups_from_singles
return {:groups => @groups, :singles => @singles}
end
@tapickell
tapickell / urlGrabTags.rb
Last active December 21, 2015 03:19
get tags from website
#!/usr/bin/env ruby
require 'open-uri'
tags = []
outfile = File.open("tags.txt", "w")
open("http://ccis.edu") do |f|
f.each_line do |line|
if /[<]\w+/.match(line)
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
Stupid Shit
OPERANDS = {zero: 0, one: 1, two: 2, three: 3, four: 4, five: 5, six: 6, seven: 7, eight: 8, nine: 9}
OPERATIONS = {plus: :+, minus: :-, times: :*, divided_by: :/}
def self.method_missing(message, *args)
if is_target_message? message
process_message message, *args
else
super
end
end
// Matthew McMillan
// @matthewmcmillan
// http://matthewcmcmillan.blogspot.com
//
// Digital speedometer
//
// VSS on car connects to pin 5
// CLK on display to Analog pin 5
// DAT on display to Analog pin 4
//
@tapickell
tapickell / gist:a62a6c36b1f3026b4bec
Last active August 25, 2015 20:00 — forked from pjobson/remove_mcafee.md
OSX McAfee Removal
launchctl stop com.mcafee.menulet
launchctl stop com.mcafee.reporter
launchctl remove com.mcafee.menulet
launchctl remove com.mcafee.reporter
sudo su -
launchctl stop com.mcafee.virusscan.fmpd
launchctl stop com.mcafee.ssm.ScanManager