Skip to content

Instantly share code, notes, and snippets.

View ltackett's full-sized avatar

Lorin Tackett ltackett

View GitHub Profile
SyntaxError at /
/Users/ltackett/projects/lorintackett/tests/haml_comment_conditions/source/layout.haml:8: syntax error, unexpected keyword_elsif, expecting keyword_end elsif test_var == 42 ^ /Users/ltackett/projects/lorintackett/tests/haml_comment_conditions/source/layout.haml:12: syntax error, unexpected keyword_ensure, expecting $end
- test_var = true
-# Commment
- if test_var
%h1 Foo
-# Another Comment
- elsif test_var == 42
%h1 Bar
/* === source: === */
@mixin some-mixin {
overflow: hidden;
width: 200px;
@trigger "callback"; /* Trigger an event */
}
.box {
@mixin inset-text($color, $amount: 0.7) {
color: $color;
@if lightness($color) < 50% { @include single-text-shadow(rgba(white, $amount), 1px, 1px, 1px); }
@else { @include single-text-shadow(rgba(black, $amount), -1px, -1px, 1px); }
}
@ltackett
ltackett / Rakefile
Created August 16, 2011 20:10
Staticmatic deploy script
ssh_user = "[email protected]" # for rsync deployment
remote_root = "~/example.com/" # for rsync deployment
desc "Runs preview"
task :preview do
system "staticmatic preview ."
end
desc "Builds the site"
task :build => 'styles:clear' do
@ltackett
ltackett / deepsearch.rb
Created July 21, 2011 06:40 — forked from mbuckbee/deepsearch.rb
Deep search a single twitter users's history.
require 'rubygems'
require 'twitter'
require 'json'
require 'net/http'
def term_search(screen_name, needle)
(0..9999999).each do |i|
puts "Page #{i} Search"
=ui-box($custom-image-suffix: "")
$base-path: "/images/cristalcard/v2/background_content_"
$top-path: $base-path + "top" + $custom-image-suffix + ".png"
$mid-path: $base-path + "mid" + $custom-image-suffix + ".png"
$bottom-path: $base-path + "bottom" + $custom-image-suffix + ".png"
.box_top
height: 3px
background: url($top-path) no-repeat left top
.box_bottom
@ltackett
ltackett / gist:894734
Created March 30, 2011 16:28
inset-border.sass
@import compass/css3/box-shadow
=inset-border($direction, $border-color: #333, $highlight-color: #fff, $highlight-opacity: 0.9, $border-width: 1px, $border-style: solid)
@if $direction == "left"
+box-shadow(rgba($highlight-color, $highlight-opacity), -1px, 0, 0, 0)
@if $direction == "right"
+box-shadow(rgba($highlight-color, $highlight-opacity), 1px, 0, 0, 0)
@if $direction == "top"
+box-shadow(rgba($highlight-color, $highlight-opacity), 0, 1px, 0, 0, inset)
@if $direction == "bottom"
+box-shadow(rgba($highlight-color, $highlight-opacity), 0, 1px, 0, 0)
// This keeps things organized with the indentation you want
#dashboard-content {
/*rule:value;*/
&.my-account-v2 {
/*rule:value;*/
.page { /*rule:value;*/ }
.inner { /*rule:value;*/ }
.inbox-sidebar { /*rule:value;*/ } } }
.inbox-sidebar {
ssh_user = "[email protected]" # for rsync deployment
remote_root = "~/domain.com/path.to/project" # for rsync deployment
def fs_deploy(relative)
puts ">>> Change Detected to: #{relative} >> Deploying"
system("rake deploy")
end
desc "Watch the site and regenerate when it changes"
task :watch do