Skip to content

Instantly share code, notes, and snippets.

SteveB icegulch

  • Boulder, CO
Block or report user

Report or block icegulch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pages.yml
-
id: page-01
name: "demo.lagrangesystems.com"
alert_type: "warning"
alert_qty: "2"
badges:
-
title: Degraded
level_color: yellow
@icegulch
icegulch / data.json
Created May 7, 2014
Sample Chart JSON File for Lagrange PDF
View data.json
[
{
"bin": 1,
"number_of_companies": 354,
"low": 0.0,
"high": 0.7
},
{
"bin": 2,
"number_of_companies": 273,
@icegulch
icegulch / flags.json
Created May 7, 2014
Sample Flag JSON for Lagrange PDF
View flags.json
{
"bin1": [
{
"group" : "client_domains",
"domain": "lightinggenie.com",
"bin": 1,
"load_time" : ".10"
},
{
"group" : "competitor_domains",
View best-mixin-stratgey.rb
#! /usr/bin/env ruby
# this is best practice for writing mixins. the deferred evaluation is more
# powerful that the approach of ClassMethods/InstanceMethods as modules too
#
module Mixin
# put your class level code in here
#
ClassMethods = proc do
View steves_mixins
// Border-radius accepts all shorthand combos; defaults to 0.5em
@mixin border-radius($radii: 0.5em) {
-webkit-border-radius: $radii;
-moz-border-radius: $radii;
border-radius: $radii;
}
@mixin transition($speed) {
-webkit-transition: $speed ease-in-out all;
View action.rb
# it's not critical for understanding
# but here is the associated server-side action
#
def version
@program = load_program!
@version = @program.versions.find(params[:version_id])
if stale?(:last_modified => @version.updated_at, :etag => @version.cache_key)
View liquid-list-css
.product-listing > li {
list-style: none;
width: 300px;
margin: 0 0 20px 0;
padding: 0 10px;
display: inline-block;
/* IE7 inline-block hack */
*display: inline;
*zoom: 1;
vertical-align: top;
View liquid-loop
<ul class="product-listing">
## LOOP ONE
<li class="bakery-shop-collections">
<h2>{{linklists.bakery-shop-collections.title}}</h2>
<ul>
{% for link in linklists.bakery-shop-collections.links %}
<li{% if link.active %} class="active"{% endif %}>
<a href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
View liquid-list-css2
## CHANGE LANGUAGE DIRECTION ON CONTAINING UL
.product-listing {
list-style: none;
margin: 0;
padding: 0;
direction: rtl;
unicode-bidi: bidi-override;
font-size: 0; /* avoid word-spacing gap b/t LIs */
}
You can’t perform that action at this time.