Skip to content

Instantly share code, notes, and snippets.

async function getRacebookToken(options) {
return new Promise(async (resolve, reject) => {
try {
console.log('🐎 getRacebookToken');
const currentBrand = process.env.INSTANCE_BRAND
Wallet
- spInetGetTotalPendingCredit
- spInetGetThisWeeksFigure
- spInetGetCustomerBalances
- uSp_Message_ValidateMessage
- uSp_Local_IsCashBackCustomer
Signin
- requestSignUp: 'https://api_signup.betregal.ca/api/Signupv3/Register'
- signUpValidate: 'https://api_signup.betregal.ca/Api/NewSignup'
(function() {
window.requestAnimFrame = (function(callback) {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) {
return window.setTimeout(callback, 1000 / 60);
};
})();
$(function() {
var animate, canvas, context, drawMarker, rainDrop;
canvas = document.getElementById('canvas');
'AFN' => 'Af',
'ALL' => 'L',
'AMD' => 'Դ',
'AOA' => 'Kz',
'ARS' => '$',
'AUD' => '$',
'AWG' => 'ƒ',
'AZN' => 'ман',
'BAM' => 'КМ',
'BBD' => '$',
Hotel:
- Brujas
- mas en el centro dos cuartos, se ve cool: https://www.airbnb.com/rooms/4234316?adults=4&check_in=2020-01-27&check_out=2020-01-30&source_impression_id=p3_1573408815_KOmG64KSu4PKjgU0
- Paris
- cozy 83 rojos la noche este esta a la pura par de la torre. https://www.airbnb.com/rooms/10495435?adults=4&check_in=2020-01-30&check_out=2020-02-03&source_impression_id=p3_1573408184_5QAxxelwiu1MD1Nl
- London
- este se ve bonito y cerquita de bares: https://www.airbnb.com/rooms/39337863?adults=4&check_in=2020-02-03&check_out=2020-02-06&source_impression_id=p3_1573409272_IMsFc1mYIRfcvl1I
{
"sites": [
{
"siteName": "default",
"SID": 1,
"merchantID": 1,
"themeName": "yellow-theme",
"disableScores": false,
"disableDeposits": false,
"disableCashback": false,
2016-11-22 16:34:37,757 [10] FATAL GSAPI.Utils.Log - Service error: 3f941838-4494-4c74-9ef6-837e257d78ab: Invalid or missing participant in Market record (event 111129881)
Stack Trace:
at GSAPI.Data.Selection.translateFromServiceModel(Selection fromSel)
at GSAPI.ServiceInterface.BetSlipService.GetLeaguesAndSelections(String[]& error, List`1& dmSelections, List`1 smSelections, User user, SysUser sysUser, Boolean validateMarkets)
at GSAPI.ServiceInterface.BetSlipService.Post(OpenWagerCheckForTeaser request)
System.Exception: Invalid or missing participant in Market record (event 111129881)
at GSAPI.Data.Selection.translateFromServiceModel(Selection fromSel)
at GSAPI.ServiceInterface.BetSlipService.GetLeaguesAndSelections(String[]& error, List`1& dmSelections, List`1 smSelections, User user, SysUser sysUser, Boolean validateMarkets)
at GSAPI.ServiceInterface.BetSlipService.Post(OpenWagerCheckForTeaser request)
2016-11-22 16:29:24,431 [8] FATAL GSAPI.Utils.Log - Service error: e9eee5f6-c30d-4266-9339-47136d5672ad: Object cannot be cast from DBNull to other types.
Stack Trace:
at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ToInt32(Object value)
at GSAPI.Data.Market.SetSpread(IDataReader data, Event evt, Int32 participantNum, List`1 discounts)
at GSAPI.Data.Event.LoadCoreMarkets(IDataReader data, User user, SysUser sysUser, List`1 markets)
at GSAPI.Data.Event.FindByLeague(Database Db, League league, User user, SysUser sysUser, Int32 periodNum, Boolean withHeaders)
at GSAPI.ServiceInterface.EventsService.Get(Events request)
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
public static List<Wallet> GetWallets(Database Db, User user)
{
double pendingCredits = Wallet.GetPendingCredits(Db, user.customerId);
/*
* Get the customer's current sum of activity this week. According to the SP,
* it follows this formula:
* total = amountWon + creditAdjustment + casinoAmountWon
* - amountLost - debitAdjustment - casinoAmountLost
*/
USA Major leagues
Baseball
MLB
NCAABB
Basketball
NBA
NCAA
WNBA
WNCAA