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
| window.onload = function() { | |
| $("#login").click(function(event) { | |
| chrome.identity.launchWebAuthFlow( | |
| {'url': 'http://localhost:3000/oauth/authorize?client_id=7b529aed5e89c14bd45c4cb949f220e5bc4cc440003dd7604d3fc6ed43f29844&redirect_uri=https%3A%2F%2Fhnjjholodahaklljjenjpfbkkghppdpk.chromiumapp.org%2Fvyrtex-chrome-extension&response_type=code', 'interactive': true}, | |
| function(redirect_url) { | |
| console.log(redirect_url); | |
| var code = redirect_url.substring(redirect_url.indexOf("=") + 1, redirect_url.length ); | |
| exchangeCodeForToken(code); | |
| }); |
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
| Parameters: {"utf8"=>"✓", "authenticity_token"=>"XjmHdigv/4cuiRRDhQEBj69aaESx56mUXesWdgYPbq9w4NXIr6nwvnyEHPyNU4DPa4YLA6PddgruvyVwlFSXMA==", | |
| "product"=>{"1"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "2"=>{"type_name"=>"", "brand"=>"", "image"=>""}, | |
| "3"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "4"=>{"type_name"=>"", "brand"=>"", "image"=>""}, | |
| "5"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "6"=>{"type_name"=>"", "brand"=>"", "image"=>""}, | |
| "7"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "8"=>{"type_name"=>"", "brand"=>"", "image"=>""}, | |
| "9"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "10"=>{"type_name"=>"", "brand"=>"", "image"=>""}, | |
| "11"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "12"=>{"type_name"=>"", "brand"=>"", "image"=>""}, | |
| "13"=>{"type_name"=>"", "brand"=>"", "image"=>""}, "14"=>{"type_name"=>"", "brand"=>"", "image"=>""}, |
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
| use Rack::Static, | |
| :urls => ["/images", "/js", "/css", "/fonts"], | |
| :root => "public" | |
| run lambda { |env| | |
| request = Rack::Request.new(env) | |
| file = request.env['REQUEST_URI'].match(/([^\/]+)(?=\.\w+$)/) | |
| file = file ? file[0] : "index" | |
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
| <div class="row" style="margin-top: 40px"> | |
| <div class="col-lg-1"></div> | |
| <div class="col-lg-3"> | |
| <lead style="color: #86868a;font-size: 14px;font-weight: 200;border-bottom: 1px dotted #86868a">Your Investment Mix</lead><br/><br/> | |
| <canvas id="myChart" width="250" height="250"></canvas> | |
| </div> | |
| <div class="col-lg-7" style="margin-left: px;margin-top: 50px"> | |
| <table class="table" style="color:#86868a;font-size: 13px"> <thead> | |
| <tr> |
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
| <canvas id="myChart2" height="100px"></canvas> | |
| $(function () { | |
| var ctx2 = document.getElementById("myChart2"); | |
| var data2 = { | |
| labels: ['Jan', 'Feb', 'Mar', 'May', 'Jun', 'Jul', 'Aug'], | |
| datasets: [{ | |
| label: 'Actual', |
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
| <script> | |
| var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
| var color = Chart.helpers.color; | |
| var barChartData = { | |
| labels: ["January", "February", "March", "April", "May", "June", "July"], | |
| datasets: [{ | |
| label: 'Note', | |
| backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(), | |
| borderColor: window.chartColors.red, | |
| borderWidth: 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
| <script> | |
| var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
| var color = Chart.helpers.color; | |
| var barChartData = { | |
| labels: ["January", "February", "March", "April", "May", "June", "July"], | |
| datasets: [{ | |
| label: 'Note', | |
| backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(), | |
| borderColor: window.chartColors.red, | |
| borderWidth: 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
| **Event Background** | |
| On September 13, 2005 World of Warcraft (WoW) released a dungeon called Zul’Gurub. The dungeon was a high-level raid aimed at top tier players (2% of the population at the time). Players who finished the dungeon were rewarded with extremely rare weaponry after defeating the final boss, Hakkar the Soulflayer. Bosses in WoW are not only are considerably harder to kill than regular enemies, but also have the ability to cast specific lethal spells. In this case, Hakkar casted a spell called Corrupted Blood on every player who entered the dungeon. Corrupted Blood caused players to take 200 damage every second for 10 seconds and it could be passed from one player to another if they were in close proximity. After the player would exit the dungeon, the game code would wipe away the disease and the player could continue his next adventure. | |
| **Chain of Infection** | |
| Outside of the players personal avatar, they were also allowed to have a pet. Pets are companions that help the player fight, search f |
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
| {id:484,name:Blake Bortles,position:QB,team:Jaguars,img_url:http://a.espncdn.com/combiner/i?img=/i/headshots/nfl/players/full/16724.pngu0026w=350u0026h=254,projected_score:17.5,next_game:Patriots,created_at:2018-01-15T14:19:12.182Z,updated_at:2018-01-16T18:26:59.312Z,game_time:1/21/2018 3:05 PM,league:NFL,actual_score:,wager_id:null}, | |
| {id:489,name:Brandin Cooks,position:WR,team:Patriots,img_url:http://a.espncdn.com/combiner/i?img=/i/headshots/nfl/players/full/16731.pngu0026w=350u0026h=254,projected_score:14.7,next_game:Jaguars,created_at:2018-01-15T14:22:50.447Z,updated_at:2018-01-15T14:24:43.731Z,game_time:1/21/2018 3:05 PM,league:NFL,actual_score:,wager_id:null}, | |
| {id:485,name:Leonard Fournette,position:RB,team:Jaguars,img_url:http://a.espncdn.com/combiner/i?img=/i/headshots/nfl/players/full/3115364.pngu0026w=350u0026h=254,projected_score:16.1,next_game:Patriots,created_at:2018-01-15T14:19:49.696Z,updated_at:2018-01-15T14:26:34.844Z,game_time:1/21/2018 3:05 PM,league:NFL,actual_score:,wager_id:null}, | |
| {id:4 |
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 NbaPlayers | |
| NBA_PLAYERS = [ | |
| { id: 20000439, name: "Nene Hilario" }, | |
| { id: 20000440, name: "Marcin Gortat" }, | |
| { id: 20000441, name: "Bradley Beal" }, | |
| { id: 20000442, name: "John Wall" }, | |
| { id: 20000443, name: "Otto Porter" }, | |
| { id: 20000452, name: "Garrett Temple" }, | |
| { id: 20000453, name: "Terrence Ross" }, | |
| { id: 20000455, name: "Jonas Valanciunas" }, |