Skip to content

Instantly share code, notes, and snippets.

View surfer190's full-sized avatar

surfer190 surfer190

  • South Africa
View GitHub Profile
View pilot.js
$( document ).ready(function() {
var typedPassword = "";
var typedPasswordOverlay = "";
var pastedPassword = false;
var ctrlPressed = false;
type: 'GET',
url: '../web-plt/Exhursfl',
dataType: 'json',
success: function (data) {
surfer190 /
Last active July 24, 2019 06:07
API wrapper Concerns
  • It must make using the API shouldn't be an abstraction for abstraction sake

  • when you get a session token - can you store it for future sessions? - what mechanism is used to retrieve a new one if the old one fails within the request/response cycle.

  • automatically close session tokens

  • should you hide error codes - or just raise them from the original api? - for example authentication fails on the client api login - I should raise an exception but what kind?

  • Should you catch API access codes and raise your own errors

surfer190 /
Last active December 1, 2017 19:52
Top 100 Movies of all time by Surfer190
  1. Die Hard 1
  2. True Grit (2011)
  3. The Matrix (1999)
  4. Crank (2006)
  5. The Good the bad and the ugly (1966)
  6. Fight Club
  7. Escape from alcatrax (1979)
  8. V for Vendetta (2005)
  9. Equilibrium
  10. Crank: High Voltage (2009)
surfer190 /
Last active January 26, 2023 17:36
Rules of Betting

Rules of Betting

  1. Do not bet on horses - Unless you are taking a gamble (100% gambling, attracts 6% tax)
  2. Prefer bets on markets with 2 final outcomes (No draws) - So avoid betting on final outcomes of test cricket and football matches (where the draw is likely). If you want to bet on football or sports with a probable draw rather choose double chance or draw no bet options. Check this double chance calculator
  3. Only bet on a sport you have played or watched for at least 5 years - it is important to enjoy watching the game
  4. Bet on mainstream markets (Team/Player to Win), the more obscure the more the risk if you have no edge
  5. If the sport has In-play betting and half time / innings', only stake half the total betting amount before the game starts. Decide whether to stake the rest at half time / innings break or when you feel there is a bottom in the market
  6. Only place bets that will double your money or more. ie. with odds greater than 1
surfer190 /
Last active March 5, 2023 12:54
Top tracks


  • ACDC - Hells Bells
  • Aerosmith - Dream On
  • Lynard Skynard - Simple Man
  • Bon Jovi - Wanted Dead Or Alive
  • Gerry Rafferty - Baker Street
  • Bob Seger - Turn the Page
  • Bob Seger - Main Street
  • Foreigner - Urgent
surfer190 /
Last active April 22, 2018 09:24
A List of Share Trading Rules and Tips to keep in mind and follow when making financial trades

Technical Share Trading Tips¬

Don't catch a falling knife

  • The short, medium or long term trend must be in the direction of your trade
  • There must be clear support for your trade direction
  • A Higher high or higher low must signal a long
  • A Lower high or lower low must signal a short
  • 50 and 200MA should be pointed in the direction of trade
  • 50 > 200 MA for long, 50MA < 200MA for ahort