Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
| <? | |
| // | |
| // AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
| // | |
| // File: twitterFollowerCuratorBot.php | |
| // | |
| // Created: May 2021 | |
| // License: MIT | |
| // |
| http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
| http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
| #payload: [{"kind"=>"person"}] | |
| Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
| #data: {"interest"=>["music", "movies", "programming"]} | |
| Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
| Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
| Segment.where("jsonb_array_length(data->'interest') > 1") |
| This gist is the update of this post https://u.osu.edu/hasnan.1/2014/03/30/rails-4-multiple-file-upload-with-carrierwave-nested-form-and-jquery-file-upload/ | |
| License MIT |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
| {# twig template #} | |
| <div class="flash-messages"> | |
| {% block flashes %} | |
| {% for notice_level in ['success','error','info', 'warning', 'notice'] %} | |
| {% if app.session.hasFlash(notice_level) %} | |
| <div class="alert alert-{{ notice_level }}"> | |
| <a class="close" data-dismiss="alert" href="#">x</a> | |
| <h4 class="alert-heading">{{ notice_level }}</h4> | |
| {{ app.session.flash(notice_level) }} |
| Standard | |
| Bleed Margin: 90mm x 52mm | |
| Content Ends: 87mm x 49mm | |
| Imperial | |
| Bleed Margin: 3.54in x 2.05in | |
| Content Ends: 3.43in x 1.93in | |
| #!/bin/sh | |
| # Licence: MIT | |
| # Created by tomykaira, 2011-10-25 | |
| if [ $# -ne 1 ]; then | |
| echo "Give me your new project name (only)" | |
| exit 1 | |
| fi |
Note that this validation runs both after the file is uploaded and after CarrierWave has processed the image. If your base uploader includes a filter to resize the image then the validation will be run against the resized image, not the original one that was uploaded. If this causes a problem for you, then you should avoid using a resizing filter on the base uploader and put any specific size requirements in a version instead.
So instead of this:
require 'carrierwave/processing/mini_magick'