$ curl get.pow.cx | sh
$ curl -O https://raw.github.com/gist/4129846/7ae1709453a8a19ce9c030bf41d544dd08d96d85/php.rb
$ mv php.rb brew --prefix
/Library/Formula
source "https://rubygems.org" | |
ruby "2.2.2" | |
gem "rails", "4.2.0" | |
group :development do | |
gem "foreman" | |
gem "guard-livereload", require: false | |
gem "rack-livereload" | |
end |
This was the initial proposal for Simple Scheduler in the form of a README. The goal was to come up with a project that didn't exist, but solved all of our problems right in the README. And then write the code.
You can now find the actual README and the project here:
https://github.com/simplymadeapps/simple_scheduler
--
The Rails asset pipeline has SCSS glob imports. Why isn't this possible everywhere? I made it possible with Broccoli.js.
// web/static/css/admin.scss
@import "admin/variables";
// Sets up a element and its child elements with the flexbox properties needed | |
// to have the given number of columns with optional gutters or margins. | |
$mobile-breakpoint: 500px !default; | |
@mixin has-columns($columns, $gutter: 0, $margin: 0) { | |
@include align-content(stretch); | |
@include align-items(stretch); | |
@include display(flex); | |
@include flex-direction(row); | |
@include flex-wrap(wrap); |
// Centers child elements horizontally and vertically without needing | |
// to set the height and width of the child elements using flexbox. | |
@mixin center-children { | |
@include align-content(center); | |
@include align-items(center); | |
@include display(flex); | |
@include flex-direction(column); | |
@include justify-content(center); | |
} |
# https://github.com/drewbug/RackMotion | |
class GithubApiStub | |
def initialize(app) | |
@app = app | |
end | |
def call(request) | |
status, headers, data = @app.call(request) |
[core] | |
... | |
[remote "dokku"] | |
url = git@remote:appname | |
fetch = +refs/heads/*:refs/remotes/dokku/* |
filter :before, apply: -> (records, value, _options) do | |
records.where("shop_orders.order_datetime < ?", value) | |
end | |
filter :after, apply: -> (records, value, _options) do | |
records.where("shop_orders.order_datetime > ?", value) | |
end |