Skip to content

Instantly share code, notes, and snippets.

$bio-breakpoint: 500px;
.bio {
@media screen and (min-width: $bio-breakpoint) {
float: left;
width: 50%;
}
}
.bio-photo {
a:after {
content: " (" attr(href) ")";
}
© 2007 Some Company. All rights reserved.     Sitemap...
<form action="action.cfm" method="post">
<p>
<strong>Your Name</strong><br />
<input type="text" name="yourName" />
</p>
<p>
<strong>Gender</strong><br />
<input type="radio" name="gender" value="M" />
Male<br />
<input type="radio" name="gender" value="F" />
Alabama:
- Autauga County
- Baldwin County
- Barbour County
- Bibb County
- Blount County
- Bullock County
- Butler County
- Calhoun County
- Chambers County
@chrisdpeters
chrisdpeters / breadcrumbs.css.scss
Created August 14, 2014 15:36
Responsive breadcrumbs for ZURB Foundation 5
.breadcrumbs {
@include crumb-container;
background: none;
border: 0;
margin: 0;
padding: rem-calc(3);
li {
display: none;
@chrisdpeters
chrisdpeters / accessing_drafts.rb
Last active May 21, 2017 12:22
Draftsman gem: Add a draft state to your Ruby on Rails and Sinatra relational models http://blog.liveeditorcms.com/draftsman-gem-draft-state-ruby-on-rails-sinatra-relational-models/
# Accessing drafts through the `Draftsman::Draft` class
@drafts = Draftsman::Draft.order(:created_at)
# Accessing a draft through a model
@post = Post.find(params[:id])
@draft = @post.draft if @post.draft?
adapter: sftp
host:
port:
username:
password:
path:
additional:
- css/app.min.css
- javascripts/app.min.js
@chrisdpeters
chrisdpeters / cookies.cfc
Last active August 29, 2015 14:02
Using ColdFusion as a proxy to a remote application
component extends="Controller" {
/**
* Calls remote application with session cookies for this app and posting any form or get values. Returns cfhttp results struct.
* @app Model object containing info about remote app.
*/
private function callRemoteApp(app) {
// HTTP method to call
if (isPost()) {
local.method = "post";