Skip to content

Instantly share code, notes, and snippets.

View relaxedtomato's full-sized avatar

Ram relaxedtomato

View GitHub Profile
@values = [
[1000, 'M'],
[500, 'D'],
[100, 'C'],
[50, 'L'],
[10, 'X'],
[5, 'V'],
[1, 'I']
]
@relaxedtomato
relaxedtomato / candidates.rb
Last active April 29, 2016 00:46 — forked from joshuastr/candidates.rb
Candidates
require 'active_support/all'
@candidates = [
{
id: 5,
years_of_experience: 4,
github_points: 293,
languages: ['C', 'Ruby', 'Python', 'Clojure'],
date_applied: 5.days.ago.to_date,
age: 26
var game = {
userAmount: 100,
bet: null,
number: null,
guess: null,
getBetAmount: function() {
//RB: Question - what does 'this' refer to? Do look up the different rules for 'this' (we can discuss further next time).
//RB: The approach to using this is not wrong, however, you can also just refer to globally defined variables (to reduce writing 'this')
@relaxedtomato
relaxedtomato / js-betting-game.html
Last active July 25, 2016 22:37 — forked from Leejojo/js-betting-game
js-betting-game
<!DOCTYPE html>
<html>
<head>
<script src="jquery-3.1.0.js"></script>
</head>
<body>
<h1>Place Your Bets!</h1>
<!--RB: You can remove this extra space, lint takes care of this, http://eslint.org/-->