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
Compute | |
EC2/AMI -> Compute Engine | |
Elastic Beanstalk -> App Engine | |
ECS -> Container Engine | |
Lambda -> Cloud Functions | |
Storage | |
S3 -> Cloud Storage |
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
TO star | |
repeat 5 [ repeat 100 [ fd 1 wait 1 ] rt 144 ] | |
END | |
clearscreen | |
star |
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
source 'http://gemcutter.org' | |
gem "bj" | |
gem "hpricot", "~> 0.6" | |
gem "sqlite3-ruby", "~> 1.3.1", :require => "sqlite3" | |
gem "aws-s3", :lib => "aws/s3" | |
gem "rails", "= 2.3.10" | |
gem "authlogic", "~> 2.1.6" | |
group :development, :test do | |
gem 'mongrel', :require => false |
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
# Be sure to restart your server when you modify this file | |
# Specifies gem version of Rails to use when vendor/rails is not present | |
RAILS_GEM_VERSION = '2.3.10' unless defined? RAILS_GEM_VERSION | |
# Bootstrap the Rails environment, frameworks, and default configuration | |
require File.join(File.dirname(__FILE__), 'boot') | |
Rails::Initializer.run do |config| | |
# Settings in config/environments/* take precedence over those specified here. |
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
# Be sure to restart your server when you modify this file | |
# Specifies gem version of Rails to use when vendor/rails is not present | |
RAILS_GEM_VERSION = '2.3.10' unless defined? RAILS_GEM_VERSION | |
# Bootstrap the Rails environment, frameworks, and default configuration | |
require File.join(File.dirname(__FILE__), 'boot') | |
Rails::Initializer.run do |config| | |
# Settings in config/environments/* take precedence over those specified here. |
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
begin | |
require "rubygems" | |
require "bundler" | |
rescue LoadError | |
raise "Could not load the bundler gem. Install it with `gem install bundler`." | |
end | |
if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24") | |
raise RuntimeError, "Your bundler version is too old for Rails 2.3." + | |
"Run `gem install bundler` to upgrade." |
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
class Rails::Boot | |
def run | |
load_initializer | |
Rails::Initializer.class_eval do | |
def load_gems | |
@bundler_loaded ||= Bundler.require :default, Rails.env | |
end | |
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
(ns udptest.core | |
(:import [java.net DatagramSocket | |
DatagramPacket | |
InetAddress] | |
[java.io BufferedReader | |
InputStreamReader])) | |
(set! *warn-on-reflection* true) | |
(defn- client [] |
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
mac-gusworks:game pbalduino$ lein run | |
> Broadcast: Aguardando jogadores | |
> Broadcast: Servidor pronto na porta 4567 | |
> Broadcast: Um jogador conectado | |
> Broadcast: Dois jogadores conectados | |
> Broadcast: Jogando o jogo da velha | |
> Broadcast: É a vez do jogador 1 | |
> Broadcast: Jogador 1: 0 | |
> Broadcast: | |
O | | |
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
(defn border [x] | |
(cond (= (meta x) nil) "nao autorizado" | |
(= ((meta x) :type) "valinor") x | |
:default "lixo")) | |
;Associar um meta a sua função de validação | |
;teste | |
(def x (with-meta [1 2 3 4] {:type "valinor"})) |