##Refs
Add to Gemfile: gem 'wicked_pdf'
| @font-face { | |
| font-family: "GaroaBold"; | |
| src: url(/assets/garoaminuscula.eot); | |
| src: local("GaroaBold"), | |
| url(/assets/garoaminuscula.eot?#iefix) format("embedded-opentype"), | |
| url(/assets/garoaminuscula.woff) format("woff"), | |
| url(/assets/garoaminuscula.ttf) format("truetype"), | |
| url(/assets/garoaminuscula.svg#GaroaBold) format("svg"); | |
| font-weight: normal; | |
| font-style: normal; |
##Refs
Add to Gemfile: gem 'wicked_pdf'
| CREATE DATABASE "db" with ENCODING = 'unicode' lc_collate='pt_BR.UTF-8' lc_ctype='pt_BR.UTF-8' TEMPLATE=template0; | |
| show lc_collate; | |
| select * from (values('Éder', 'Eda', 'Edu')) x order by 1; | |
| require 'rubygems' | |
| require 'mini_magick' | |
| color = '#103afc' | |
| img = MiniMagick::Image.open("letter_x.png") | |
| img.combine_options do |c| | |
| c.add_command( 'level-colors') | |
| c.+ "#{color}," |
| CREATE FUNCTION distance (latA double, lonA double, latB double, LonB double) | |
| RETURNS double DETERMINISTIC | |
| RETURN 2 * ASIN(SQRT((SIN((radians(latA) - radians(latB))/2) * SIN((radians(latA) - radians(latB))/2) + | |
| COS(radians(latA)) * COS(radians(latB)) * SIN((radians(lonA) - radians(LonB))/2)*SIN((radians(lonA) - radians(LonB))/2)))) * 6371.01 |
| def create | |
| erros = [] | |
| variants = [] | |
| ProductionLabel.transaction do | |
| begin | |
| label = ProductionLabel.create!(params[:production_labels]) | |
| unless (label.valid?) | |
| raise label.errors.full_messages | |
| end | |
| /*ok | |
| /** | |
| * The first commented line is your dabkjkjblet’s title | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height:100%; |
| [branch] | |
| autosetuprebase = always |
| -- 1) ran fine for 2 mi records table. | |
| -- 2) assuming the table name is clients. | |
| select did, cid, did - cid as gap | |
| from | |
| ( | |
| select | |
| d.id as did, | |
| (select min(id) as cid from clients c where c.id > d.id ) as cid | |
| from |
| Using built-in specs. | |
| Target: i686-apple-darwin10 | |
| Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 | |
| Thread model: posix | |
| gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) |