#Sign Out Capability
This file contains hidden or 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
module Hello | |
class Account | |
class List | |
def initialize(request) | |
@request = request | |
end | |
def list | |
gather_wanted_strings |
This file contains hidden or 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
atual = 0 | |
meta = Float::INFINITY | |
presidente = "Dilma" | |
while presidente == "Dilma" | |
while atual < meta | |
atual += 1 | |
puts "momento atual: #{atual}, meta: #{meta}" | |
sleep(1) |
This file contains hidden or 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 'net/http' | |
require 'colorize' | |
ip = '10.1.1.1' | |
uri = URI("http://#{ip}/") | |
('00'..'31').each do |d| | |
('00'..'12').each do |m| | |
('00'..'99').each do |y| |
This file contains hidden or 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
PLEASE HELP, CALL TO ACTION | |
Facebook has accidentaly removed our sister group. | |
Take 60 seconds of your time, | |
make a report and help us bring it back! | |
Submit this form: https://www.facebook.com/help/contact/157461604368161 | |
Group name: Ruby on Rails | |
URL: https://www.facebook.com/groups/rubyandrails/ | |
Text: |
This file contains hidden or 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
module Geocoder | |
module Lookup | |
class Base | |
private | |
def read_fixture(file) | |
File.read(File.join("spec", "fixtures", "geocoder", file)).strip.gsub(/\n\s*/, "") | |
end | |
end | |
class Google < Base |
This file contains hidden or 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
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css"> | |
<!-- Latest compiled and minified JavaScript --> | |
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> |
This file contains hidden or 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 "net/http" | |
require "uri" | |
require 'date' | |
require "json" | |
require "colorize" | |
class Eleicoes |
This file contains hidden or 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains hidden or 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
url = window.location.toString() + ".json" | |
$.ajax( | |
url, | |
{ | |
method: "PATCH", | |
data: {contact: {name: "James"}} | |
} | |
) |