Skip to content

Instantly share code, notes, and snippets.

View justinrolston's full-sized avatar

Justin Rolston justinrolston

  • CoverMyMeds
  • Columbus, OH
View GitHub Profile
- Alex Burkhart
- @Saterus
- neo.com
BASICS:
- REPL
- Ruby Classic: IRB
- ****gem install pry-plus****
@justinrolston
justinrolston / Question_1.sql
Last active December 10, 2015 00:19
Homework
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
<!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">
@justinrolston
justinrolston / gist:3738137
Created September 17, 2012 15:51
requeue my code
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
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;
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();