MenuMotion is a RubyMotion wrapper inspired by Formotion for creating OS X status bar menus with a syntax that should feel familiar if you've used Formotion.
Add this line to your application's Gemfile:
gem "menu-motion"
MenuMotion is a RubyMotion wrapper inspired by Formotion for creating OS X status bar menus with a syntax that should feel familiar if you've used Formotion.
Add this line to your application's Gemfile:
gem "menu-motion"
class JamonHash < HashWithIndifferentAccess | |
def default(key = nil) | |
if key.is_a?(String) && key.include?(".") | |
find_value(key.split(".")) | |
else | |
super | |
end | |
end | |
def find_value(keys) |
hash = { | |
aligning: "key/values", | |
is: "so much", | |
easier: "with spaces" | |
} |
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 |
https://www.google.com/design/spec/style/color.html
The 500 color will be used if you use the variable name alone.
.base-color {
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 |
// 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); | |
} |
// 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); |
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";
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
--