Skip to content
View sublime.json
"afterglow_folder_icons": true,
"always_show_minimap_viewport": false,
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/1337 (SL).tmTheme",
"draw_indent_guides": true,
"draw_minimap_border": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Hack",
View gist:fdf8e43952ec4894348c
myapp: {
depends: ["mysql"],
image: {"docker": "reduto/ruby"},
provision: [
"bundle install --path /azk/bundler",
"bundle exec rake db:setup",
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
View gist:2f0db258522920c8d5e8
gem 'rack-mini-profiler'
gem 'flamegraph'
gem 'stackprof'
gem 'memory_profiler'
View gist:a4bfdd6a80a804a4217d
def search_data
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;
# Requirements:
# -------------
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: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 => '',
:fields => %w(logradouro nome bairro UF cidade)
{:name => 'RepublicaVirtual' ,
:url => '',
: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.