Skip to content
View gist:a4bfdd6a80a804a4217d
def search_data
as_json(
only: [:segment_id],
include: {
segment: { only: [:name, :parent_id, :url] },
item: {
only: [:contract_id, :product_id, :product_specification_id, :descriptive],
include: {
contract: {
only: [:active],
View gist:cca50355c8a89036b3b5
# =====================================================================================================
# Template for generating a no-frills Rails application with support for Elasticsearch full-text search
# =====================================================================================================
#
# This file creates a basic, fully working Rails application with support for Elasticsearch full-text
# search via the `elasticsearch-rails` gem; https://github.com/elasticsearch/elasticsearch-rails.
#
# Requirements:
# -------------
#
View gist:30d66ff912c8ad6aad4b
json["query"]["results"]["channel"]["atmosphere"]["humidity"]
View gist:53627b0575d556c70b0f
// Programa: Web Server com modulo ESP8266
// Alteracoes e adaptacoes: FILIPEFLOP
#include "ESP8266.h"
#include "SoftwareSerial.h"
// Cria uma serial nas portas 2 (RX) e 3 (TX)
SoftwareSerial esp8266(2 , 3);
// Define que o modulo ira utilizar a serial minhaSerial
View gist:d42425d55055f56bb101
### Keybase proof
I hereby claim:
* I am diegorv on github.
* I am diegorv (https://keybase.io/diegorv) on keybase.
* I have a public key whose fingerprint is 0D84 2B4B 23F1 DE3A C4E6 ADE1 ACF5 FD21 E214 28F2
To claim this, I am signing this object:
View gist:9999799
bind "F10" "amx_on; amx_say random [ Desbugando ];amx_rcon sv_timeout 1;wait;wait;wait;wait;wait;amx_rcon sv_timeout 99999; amx_rcon sv_timeout 65;amx_execall speak buttons/button1;speak buttons/button1"
bind "F7" "amx_rcon sv_restart 1"
bind "F6" "amx_say [Cpl Off]; amx_rcon mp_friendlyfire 0; amx_rcon mp_startmoney 16000; amx_rcon mp_roundtime 2.50; amx_rcon mp_c4timer 35; amx_rcon mp_freezetime 0; amx_rcon mp_buytime 2.50; amx_rcon mp_timeleft 0; amx_rcon mp_timelimit 0; amx_rcon mp_maxrounds 0; amx_rcon sv_alltalk 0; amx_rcon mp_forcechasecam 0; amx_rcon mp_forcecamera 0; amx_rcon mp_autoteambalance 0; amx_rcon mp_limitteams 0; mp_autokick 1"
bind "F5" "amx_say [Cpl On]; amx_rcon mp_freezetime 15;amx_rcon mp_c4timer 35;amx_rcon mp_maxrounds 0;amx_rcon mp_tkpunish 0;amx_rcon mp_startmoney 800;amx_rcon mp_friendlyfire 1;amx_rcon mp_roundtime 1.75;amx_rcon mp_limitteams 0;amx_rcon mp_autoteambalance 0;amx_rcon mp_friendlyfire 1;amx_rcon allow_spectators 1;amx_rcon sv_alltalk 0;amx_rcon mp_forcecamera 2;amx_r
View rfid_decimal.pde
#include <SoftwareSerial.h>
// Pin definitions
const int rfid_irq = 0;
const int rfid_tx_pin = 6;
const int rfid_rx_pin = 7;
// For communication with RFID module
SoftwareSerial rfid(rfid_tx_pin, rfid_rx_pin);
View gist:1780157
[
{:name => 'BronzeBusiness' ,
:url => 'http://www.bronzebusiness.com.br/webservices/wscep.asmx/cep?strcep=',
:fields => %w(logradouro nome bairro UF cidade)
},
{:name => 'RepublicaVirtual' ,
:url => 'http://cep.republicavirtual.com.br/web_cep.php?cep=',
:fields => %w(tipo_logradouro logradouro bairro uf cidade)
},
{:name => 'Paicon' ,
View gist:1186843
#require 'simplecov'
#SimpleCov.start 'rails'
require 'rubygems'
#require 'spork'
#Spork.prefork do
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
Something went wrong with that request. Please try again.