Skip to content

Instantly share code, notes, and snippets.

@zemagno
zemagno / gist:e49a35f09952a852baef560e676aa55c
Created October 2, 2023 23:53
josemagno-linkedin.json
{
"public_identifier":"josé-carlos-magno-004153",
"profile_pic_url":"None",
"background_cover_image_url":"None",
"first_name":"José Carlos",
"last_name":"Magno",
"full_name":"José Carlos Magno",
"follower_count":956,
"occupation":"Diretor at Beyondsoft Brasil",
"headline":"Cloud Specialist, passionate about tech, strategy, governance, cost optimization, compliance & data",
class CreateFuncionarios < ActiveRecord::Migration
def change
create_table :funcionarios, id: false do |t|
t.string :Login, :limit => 30, primary_key: true
t.integer :Matricula
t.string :Nome
t.date :DataAdmissao
t.date :DataDemissao
t.string :Email
t.string :CPF, :limit => 20
@zemagno
zemagno / dabblet.css
Last active November 5, 2016 12:45
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.quadrado {
background: green;
height:100px;
top:100px;
width:100px;
}
@zemagno
zemagno / dabblet.css
Last active October 29, 2016 11:44 — forked from anonymous/dabblet.css
Untitled
#primeiro {
background: red;
}
#segundo {
background: blue;
transition: 2s all ease;
}
@zemagno
zemagno / dabblet.css
Last active November 5, 2016 13:10
Untitled
.box-alerta {
float:left;
background: #4f4f4f;
border-radius:3px 3px 3px 3px;
box-shadow: 5px 5px 10px 0 #000;
color: white;
font-family:monospace;
padding: 0px 5px 0px 5px;
}
namespace :scheduler do
desc "Scheduler..."
task :go => :environment do
Scheduler.go
puts "Scheduler.go - #{Time.now} - Success!"
end
end
class Scheduler < ActiveRecord::Base
class RmDb < ActiveRecord::Base
establish_connection "rm"
self.abstract_class = true
end
class FuncionarioRm < RmDb
# set_table_name "VW_DadoPessoalInfra"
set_table_name "VW_InfraDadosProfissionais"
end
@zemagno
zemagno / Teste
Last active July 23, 2017 16:23
Teste de conhecimentos
--------------------------------------------------------------
Voce conhece as gems abaixo ? para que cada uma serve ?
will_paginate
oauth
nokogiri
thinking-sphinx
cancan
sidekiq
@zemagno
zemagno / .rb
Last active September 20, 2015 12:39
Biz Rules Engine
quando :servidor :forCriado do |ci|
incluir :hostmonitor, ci
notificar :financeiro, ci
end
quando :servidor :mudarStatus do |ci|
notificar :owner, ci
end