Skip to content

Instantly share code, notes, and snippets.

.article {
composes: flex vertical centered from "./layout.css";
}
.masthead {
composes: serif bold 48pt centered from "./typography.css";
composes: paragraph-margin-below from "./layout.css";
}
.body {
<div class="absolute right-0 xs-left-0 sm-col-6 md-col-4 lg-col-3 nowrap black bg-gray rounded-bottom">
...
</div>
var API = {
get: function() {
return new Promise(function() {
// ... some code to get remotely
});
}
}
var UserAPI = {
getById: function(id) {
@cjbell
cjbell / Flux Remote Example #1
Created February 1, 2015 22:42
Example of remote Flux request
var API = {
get: function() {
return new Promise(function() {
// ... some code to get remotely
});
}
}
var UserAPI = {
getById: function(id) {
%unstyled-anchor {
text-decoration: none;
color: inherit;
}
%button {
@extend %unstyled-anchor;
font-weight: bold;
padding: 1em 3em;
text-align: center;
@cjbell
cjbell / package.json
Created August 25, 2014 23:35
Browserify Package.json
{
"name": "your-app-name",
"devDependencies" : {
"bower": "~1.2.8"
},
"dependencies": {
"browserify": "~5.10.1"
},
"license": "MIT",
"engines": {
/*
*= require normalize-css/normalize
*/
@cjbell
cjbell / application.rb
Created August 3, 2014 11:34
config/application.rb with Bower
module YourApp
class Application < Rails::Application
config.assets.paths << Rails.root.join('vendor', 'assets', 'components')
end
end
@cjbell
cjbell / bower.json
Created August 3, 2014 11:31
bower.json
{
"name": "your-app-name-here",
"private": true,
"dependencies": {
"normalize-css": "~3.0.0"
}
}
@cjbell
cjbell / .bowerrc
Created August 3, 2014 11:30
.bowerrc for Bower
{
"directory": "vendor/assets/components"
}