essentially
export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
essentially
export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
#app/api/grape_test_api/api.rb | |
module GrapeTestAPI | |
class API < Grape::API | |
version 'v1', using: :header, vendor: 'twitter' | |
format :json | |
get 'hello' do | |
"hello world" | |
end |
For old ruby hash syntax with symbols
%s/:\([a-z_]\+\) =>/\1:/gc
For old syntax with strings
%s/"\([a-z]\+\)" =>/\1:/gc
I hereby claim:
To claim this, I am signing this object:
@GuestServices.module "Components.Gallery", (Gallery, App, Backbone, Marionette, $, _) -> | |
class Gallery.GalleryView extends App.Views.CompositeView | |
ui: | |
dropZone: ".dropzone" | |
initialize: -> | |
@$el.on("dragover", _.bind(@_showDropzone, @)) | |
buildItemView: (item, itemViewType, itemViewOptions) -> |
onRender: -> | |
@$('#fileupload').fileupload | |
dropZone: @$(@itemViewContainer) | |
headers: | |
token: App.Entities.Session.getCurrentSession().get("token") | |
dataType: 'json', | |
# done: (e, data) => | |
# @collection.push(new App.Entities.Image(data.result)) | |
add: (e, data) => | |
@getFileSize(data) |
[remote "heroku"]
url = [email protected]:<appname>.git
Host heroku.work
include ActiveModel::Validations | |
include ActiveModel::Conversion | |
extend ActiveModel::Naming |
form(:html => { :multipart => true }) do |f| | |
f.inputs 'Main name' do | |
f.input :name | |
end | |
f.inputs "Other sub-piece" do | |
f.input :other_field_from_main_thing | |
f.has_many :other_things do |thing| | |
thing.inputs "things" do |
@mixin background-image-retina($file, $type, $width, $height) { | |
background-image: url($file + '.' + $type); | |
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { | |
& { | |
background-image: url($file + '@2x.' + $type); | |
-webkit-background-size: $width $height; | |
} | |
} | |
} |