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
Private Sub Worksheet_Change(ByVal Target As Range) | |
Dim rngDV As Range | |
Dim oldVal As String | |
Dim newVal As String | |
If Target.Count > 1 Then GoTo exitHandler | |
On Error Resume Next | |
Set rngDV = Cells.SpecialCells(xlCellTypeAllValidation) | |
On Error GoTo exitHandler |
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 'eventmachine' | |
require 'redis' | |
require 'amqp' | |
EventMachine.run do | |
EventMachine.start_server '127.0.0.1', 8080 do |c| | |
def c.receive_data(data) | |
redis = Redis.new | |
connection = AMQP.connect(:host => '127.0.0.1') | |
channel = AMQP::Channel.new(connection) |
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
# sudo su - postgres | |
# createuser -s -r vagrant | |
# psql | |
# UPDATE pg_database SET datistemplate=FALSE WHERE datname='template1'; | |
# DROP DATABASE template1; | |
# CREATE DATABASE template1 WITH owner=postgres encoding='UTF-8' | |
lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0; | |
# UPDATE pg_database SET datistemplate=TRUE WHERE datname='template1'; |
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
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.provision "shell", path: "provision.rb" | |
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
require 'rubygems' | |
require 'em-websocket' | |
require 'sinatra/base' | |
require 'thin' | |
require 'redis' | |
require 'json' | |
require 'pry' | |
# SOCKETS = [] |
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
# Apache + PHP + MySQL + RVM + Ruby + Passenger | |
# Instalação comando-a-comando | |
# Apache + PHP + MySQL | |
apt-get install tasksel | |
tasksel install lamp-server | |
# RVM |
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
C# | |
10.downto(0).do( | |
() => Console.WriteLine("0") | |
); | |
10.times ( | |
i => Console.WriteLine(i) | |
); | |
Java |