This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stupid Shit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer