Skip to content

Instantly share code, notes, and snippets.

View andrewliebchen's full-sized avatar

Andrew Liebchen andrewliebchen

View GitHub Profile
@andrewliebchen
andrewliebchen / gist:4115483
Created November 20, 2012 02:03 — forked from it-is-full-of-stars/gist:4111582
Ruby on Rails for Designers

#Rails

##Creating a Rails project With the command line, navigate to where you want the project folder to be generated (e.g. documents/my_rails_projects/) and type the following to create a project called project_name:

rails new project_name

Navigate to that folder and type the following to create a controller called posts:

.buttons,
.flexcontainer {
@include linear-gradient(#F7F7F7, #E0E0E0);
@include box-shadow(inset 0 1px 0 #FFF);
border-radius: 0 0 5px 5px;
border-top: 1px solid darken($base-border-color, 10%);
margin: 0;
padding: 10px;
min-height: 30px;
}
// Somewhere above in the cascade
@font-face: // add source sans from server, call it 'source sans pro server'
// Assemble $font-family, ln 154 app/assets/stylesheets/base/_mixin.scss
$primary-font: nth($typekit-fonts, $font) + "-" + $style + $weight;
$secondary-font: nth($typekit-fonts, $font);
$fallback-fonts: nth($typekit-fallbacks, $font);
$font-family: quote($primary-font), quote($secondary-font), 'source sans pro server', $fallback-fonts;
== ConvertNotifications: migrating ===========================================
-- execute("select * from notifications")
-> 0.0016s
"2013-02-21 12:43:14 -0500) 0"
rake aborted!
An error has occurred, this and all later migrations canceled:
super: no superclass method `occurred_at' for #<Event:0x007fc68f4198c8>
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activemodel-3.2.11/lib/active_model/attribute_methods.rb:404:in `method_missing'
/Users/andrewliebchen/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.11/lib/active_record/attribute_methods.rb:149:in `method_missing'
@andrewliebchen
andrewliebchen / gist:5222301
Last active December 15, 2015 07:19
Dropdown markup
<div class="dropdown">
<a href="#" class="dropdown-toggle"></a>
<div class="dropdown-menu">
<ol class="scroll-wrapper">
<li role="menuitem"></li>
</ol>
</div>
</div>

#Rails

##Creating a Rails project With the command line, navigate to where you want the project folder to be generated (e.g. documents/my_rails_projects/) and type the following to create a project called project_name:

rails new project_name

Navigate to that folder and type the following to create a controller called posts:

@andrewliebchen
andrewliebchen / gist:5274975
Created March 30, 2013 02:12
bohemiancoding.com source
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Bohemian Coding | Apps for Designers</title>
@andrewliebchen
andrewliebchen / gist:6107442
Created July 29, 2013 20:20
Style for aside sidebar
.sidebar-tags {
@extend .sidebar;
@extend .sidebar-left;
@include span-columns(3 of 12);
@include omega;
background-color: darken($base-background-color, 30%);
border-right-color: darken($base-border-color, 30%);
display: none;
text-shadow: none;
@andrewliebchen
andrewliebchen / gist:6431130
Last active December 22, 2015 06:29
User stylesheet for Sprint.ly v0.0.1
/* Sprintly */
#logged_in_default * {
font-family: 'helvetica neue', helvetica, sans-serif !important;
text-shadow: none !important;
}
#logged_in_default #logged_in_header,
#logged_in_default .global-filters {
-webkit-box-shadow: none !important;
@andrewliebchen
andrewliebchen / gist:6524062
Last active December 22, 2015 20:09
FDN air traffic control
// Z-index stacking
.content {
z-index:<100;
}
.sidebar {
z-index:10;
}