Skip to content

Instantly share code, notes, and snippets.

View Tehsurfer's full-sized avatar

Jesse Khorasanee Tehsurfer

View GitHub Profile
@Tehsurfer
Tehsurfer / James-Jesse-meetup.md
Last active January 22, 2026 03:24
A few talking points :)

James-Jesse meetup

Resources From Jesse

A little history of my professional career in software development. From early days in Cryptocurrency arbitrage to working on a neuroscience app with teams across many countries!

A foray into fast-paced LLM enhanced development. Creating many prototype apps and experimenting with what uses LLMs have as tools in modern web development.

@Tehsurfer
Tehsurfer / example-teachers.json
Created August 15, 2025 02:10
Example-Teachers
[
{
"Name": "Angie Apple",
"Class": 1,
"Website username": "AngieApple",
"Website ID": 11,
"Website password": "red-cat-sun421"
},
{
"Name": "Barty Banana",
@Tehsurfer
Tehsurfer / bf_external_publications.js
Last active April 18, 2021 23:26
Loop to find external publictions
let refs = []
for( let i = 1; i < 107; i++){
fetch(`https://api.blackfynn.io/discover/datasets/${i}`)
.then(response => response.json())
.then(data => data.externalPublications?.length ? refs.push({
loc: `https://staging.sparc.science/datasets/${data.id}?type=dataset`,
name: data.name,
ref:data.externalPublications})
: null)
}
@Tehsurfer
Tehsurfer / discover-simulation-search.py
Last active March 1, 2021 01:35
Loop through all discover datasets finding keywords. # we then search across these keywords for terms that are stimulation: 'stimulation 'and
# discover-simulation-search.py: Loop through all discover datasets finding keywords.
# we then search across these keywords for terms that are stimulation: 'stimulation 'and
import requests
keywords = []
for i in range(1,106):
r = requests.get(f'https://api.blackfynn.io/discover/datasets/{i}/versions/1/metadata')
if r.status_code is 200:
keywords.append(r.json()['keywords'])
@Tehsurfer
Tehsurfer / scicrunch_queries.md
Last active November 18, 2020 22:45
Scicrunch queries for competency testing

Scicrunch comptenency queries

This document is a list of scicrunch queries currently and planned for use in ABI web apps for sparc.science All queries are made from a flask proxy server which is called from the vue front end

Queries currently used

The below snippets are pulled fom @tehsurfer/sparc-api used for the sidebar

Facets

# Type map is used to map scicrunch paths to given facet
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("plotly.js")):"function"==typeof define&&define.amd?define("vue-plotly",["plotly.js"],n):"object"==typeof exports?exports["vue-plotly"]=n(require("plotly.js")):t["vue-plotly"]=n(t["plotly.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=23)}([function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},function(t,n,e){var r=e(14),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this"
@Tehsurfer
Tehsurfer / tabtouch_template.py
Created January 6, 2020 01:33
This document is to define the inputs and formatting outputs of the soon to be developed tabtouch scraper
# This document is to define the inputs and formatting outputs of the soon to be developed tabtouch scraper
# Inputs:
# date: string in form yyyy-mm-dd e.g. '2019-12-31'
# event: sting of even name e.g. 'Albury'
# race: int of race number e.g. 1
# Outputs:
# odds: Either a python dictionary, json file, or json formatted string as defined below
@Tehsurfer
Tehsurfer / tabtouch_scrape_example.js
Last active January 6, 2020 01:41
tab-touch-table-scrape
// How to use this example:
// 1. Navigate to a race's odds page. This can be found by navigating to:
// https://www.tabtouch.com.au/racing/<today's date>/<meeting abbreviation>/1
// 2. Paste the code below into the chrome console and run
// Results: First horses name and odds should be printed to console
parent = document.querySelector("tr[data-starter='1']")
import plotly.graph_objects as go
import plotly.figure_factory as ff
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import numpy as np
from scipy.spatial.distance import pdist, squareform
import pandas as pd
@Tehsurfer
Tehsurfer / bf_download.py
Created September 2, 2019 04:37
Downloads a blackfynn collection to folder
import requests
from blackfynn import Blackfynn
from config import API_SECRET, API_TOKEN
import os
bf = Blackfynn(api_token=API_SECRET,api_secret=API_TOKEN)
collection = 'N:collection:0eed07e7-d147-4a2c-9411-1ea8f9ceffa5'
folder = 'downloads/'
file_type = '.abf'