This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#app/views/businesses/_form.html.erb | |
<%= form_with(model: business, scope: :business, local: true, :html => {multipart: true}) do |form| %> | |
<div class="row"> | |
<div class="col-md-12"> | |
<%= form.file_field :logo_image, id: :business_logo_image %> | |
<%= form.label :logo_image, class: 'upload' do %> | |
<i class="material-icons">file_upload</i> | |
<span>Choose image</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rbenv' # for rbenv support. (https://rbenv.org) | |
# require 'mina/rvm' # for rvm support. (https://rvm.io) | |
set :application_name, 'my_app' | |
set :domain, 'my_server' | |
set :deploy_to, '/home/rails/my_app' | |
set :repository, '[email protected]:my_user/my_app.git' | |
set :branch, 'master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<meta name="author" | |
content="GilcierWeb - Web Developer - [email protected] - [email protected] - Sites, Sistemas para Web, E-commerce, Manutenção de Sites."/> | |
<meta name="doc-rights" content="Private"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pt-BR: | |
activerecord: | |
errors: | |
template: | |
header: | |
one: "1 erro proibiu este %{model} de ser salvo:" | |
other: "%{count} erros proibiram este %{model} de ser salvo:" | |
body: 'Ocorreram problemas com os seguintes campos:' | |
messages: | |
record_invalid: 'A validação falhou: %{errors}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//FCM setup for Android Push Notifications | |
//https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd#.qootgsyzm | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array | |
( | |
'message' => 'GilcierWeb App ionic, Ruby and Rails, Elixir', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# test gilcier | |
# In terminal execute ruby palindrome.rb | |
class String | |
def initialize(word) | |
@word = word.to_s.strip.downcase | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#number.rb | |
puts 'Informe um número' | |
number = gets.chomp | |
def format_number(number) | |
for num in 0..number.to_i | |
puts num.to_s.reverse.gsub(/(\d{3})(?=\d)/, '\\1,').reverse | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31|1|12|1200013|Acrelândia | |
31|1|12|1200054|Assis Brasil | |
31|1|12|1200104|Brasiléia | |
31|1|12|1200138|Bujari | |
31|1|12|1200179|Capixaba | |
31|1|12|1200203|Cruzeiro do Sul | |
31|1|12|1200252|Epitaciolândia | |
31|1|12|1200302|Feijó | |
31|1|12|1200328|Jordão | |
31|1|12|1200336|Mâncio Lima |