Skip to content

Instantly share code, notes, and snippets.

View lemonmade's full-sized avatar

Chris Sauve lemonmade

View GitHub Profile
|- app
| |- assets
| | |- javascripts
| | | |- popover.js
| | |- stylesheets
| | | |- popover.scss
| |- helpers
| | |- ui_popover.rb
| |- views
| | |- styleguide
chai = require('chai')
beforeEach ->
this.assert = chai.assert
@lemonmade
lemonmade / UIBannerInReact.js
Last active January 13, 2016 15:39
Ideas for using attributes as styling hooks in Shopify's admin
import React, {Component} from 'react';
import {UIBanner} from 'UIComponents';
export default class MyComponent extends Component {
render() {
return <UIBanner emphasized status="success" />
}
}
@lemonmade
lemonmade / SassMeister-input.scss
Last active October 30, 2015 00:12
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$foo: 10;
.foo {
$foo: 20;
border-width: $foo; // 20
#*
# Decodes HTML entities into their regular string values.
#
# @private
# @param {String} str - The encoded string.
# @returns {String} The decoded string.
decode_html_entities = (str) ->
element = document.createElement('div')
element.innerHTML = str.trim()
@lemonmade
lemonmade / SassMeister-input.scss
Created March 25, 2015 18:30
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@mixin foo {
@at-root {
.foo#{&} {
@content;
}