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
import java.util.Scanner; | |
public class Unit8Project | |
{ | |
public static void main (String[] args) | |
{ | |
String apassword1; | |
String apassword2; | |
Scanner keyboard = new Scanner(System.in); | |
System.out.print("Enter a password: "); | |
apassword1 = keyboard.nextLine(); |
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
import java.util.Scanner; | |
public class Unit8Project | |
{ | |
public static void main (String[] args) | |
{ | |
String apassword1; | |
String apassword2; | |
Scanner keyboard = new Scanner(System.in); | |
boolean done = false; |
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
def requeue_failures(date) | |
failing_features = [] | |
FunctionalTestResult.where(:when_ran => date, :outcome => ['fail', 'fail-new']).select(:feature).uniq.each do |result| | |
newest = FunctionalTestResult.where(:when_ran => date, :feature => result.feature).order('id DESC').first | |
unless newest.outcome == 'resolved' || newest.outcome == 'success' | |
features = Feature.where(:is_current => true, :name => "Feature: #{result.feature}") | |
.select(:full_file_name) | |
.uniq |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<!-- Facebook sharing information tags --> | |
<meta property="og:title" content="*|MC:SUBJECT|*" /> | |
<title>*|MC:SUBJECT|*</title> | |
<style type="text/css"> |
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
select distinct TVModel, Price as MostRecentPrice | |
from T_TVPrices T | |
inner join | |
(select TVModel as M, MAX(DateUpdated) as D | |
from T_TVPrices | |
group by TVModel) X on T.DateUpdated = X.D and T.TVModel = X.M |
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
- Alex Burkhart | |
- @Saterus | |
- neo.com | |
BASICS: | |
- REPL | |
- Ruby Classic: IRB | |
- ****gem install pry-plus**** |
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
<HEAD> | |
<TITLE>Basic HTML Sample Page</TITLE> | |
</HEAD> | |
<BODY > | |
<a href='http://www.google.com' target='_blank' id='test'>My blank target</a> | |
</BODY> |
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
class Bob | |
def hey statement | |
return 'Fine. Be that way!' if statement.strip == '' | |
return 'Woah, chill out!' if statement == statement.upcase | |
return 'Sure.' if statement[-1,1] == '?' | |
return 'Whatever.' | |
end | |
end |
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
def tweet(message) | |
if tweet <= "140" | |
@client.update(message) | |
else | |
puts "Cannot send tweet over 140 characators" | |
end | |
end |
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
Justins-MacBook-Air:Code justinrolston$ cd choose-your-own-talk/ | |
Justins-MacBook-Air:choose-your-own-talk justinrolston$ bundle | |
Using colorize (0.5.8) | |
Using rack (1.5.2) | |
Using redcarpet (3.0.0) | |
Using syntax (1.0.0) | |
Using tty_markdown (0.0.1) from git://github.com/dapplebeforedawn/tty_markdown.git (at master) | |
Using bundler (1.3.1) | |
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. | |
Justins-MacBook-Air:choose-your-own-talk justinrolston$ bundle exec ./choose.rb |
OlderNewer