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
// Function to calculate the return from betting "No" on all reasonable markets in a PredictIt.com Linked market type. | |
// Execute by browsing to the linked market overview, and pasting function into the Developer Console window (F12) | |
(function () { | |
// Get the prices of each "No" option. | |
var noList = $('#contractListTable .sharesDown > .sharesDown').text().split('¢').filter(function (item) { | |
// Filter out options not currently traded, or costing more than $0.96. | |
return !(item === '' || item.indexOf('None') > -1 || item >= 97); | |
}).map(function (item, idx) { | |
return parseInt(item) / 100; |
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
// <copyright file="ClassScheduleExporter.cs" company="Bellevue College"> | |
// Licensed under GNU General Public License, Version 3.0 (the "License"): You may copy, | |
// distribute and modify the software as long as you track changes/dates of in source files | |
// and keep modifications under GPL. You can distribute your application using a GPL library | |
// commercially, but you must also provide the source code. | |
// | |
// http://www.gnu.org/licenses/gpl.html | |
// </copyright> | |
namespace CTCClassSchedule.Common |
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
CodeBot = { | |
start: function() { | |
var self = this; | |
self.spendAll = function() { | |
var score = this.toFixed(Number(Meteor.users.findOne({_id:Meteor.userId()}).profile.score)); | |
$(".details").append('<input type="button" id="' + score + '" class="buy btn span4">'); | |
$("#" + score).click(); | |
} | |
self.toFixed = function(x) { | |
if (Math.abs(x) < 1.0) { |
NewerOlder