Skip to content

Instantly share code, notes, and snippets.

View rockarts's full-sized avatar
💭
🐝 🇨🇦

Steven Rockarts rockarts

💭
🐝 🇨🇦
  • Edmonton, AB
View GitHub Profile
@rockarts
rockarts / current.json
Created April 22, 2025 21:11
Stock data sources
{
"stocks": [
{
"name": "Wolf, Conroy and Dickinson",
"ticker": "LHCL",
"current_price": 5.39,
"id": 1
},
{
"name": "Bogisich Group",
@rockarts
rockarts / qapital_stocks.json
Created April 22, 2025 20:46
A datasource for stock data
{
"stocks": [
{
"name": "Wolf, Conroy and Dickinson",
"ticker": "LHCL",
"current_price": 5.39,
"id": 1
},
{
"name": "Bogisich Group",
@rockarts
rockarts / qapital_stocks.json
Created April 22, 2025 20:41
A datasource for stock data.
{
"stocks": [
{
"name": "Wolf, Conroy and Dickinson",
"ticker": "LHCL",
"current_price": 5.72,
"id": 1
},
{
"name": "Bogisich Group",
// Role Attributes
role="region" // Defines a distinct section of the page that users might want to navigate to
role="list" // Tells screen readers this is a list container
role="listitem" // Tells screen readers this is an item within a list
role="group" // Groups related form elements together
role="status" // Announces changes to screen readers without interrupting
role="img" // Indicates that an element represents an image
// Labelling and Description Attributes
aria-label="Add book form" // Provides a name for the element when visible text isn't present
@rockarts
rockarts / ticket.cs
Last active June 17, 2024 15:26
HackerRank
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@rockarts
rockarts / nominees.json
Last active April 11, 2021 23:28
2021 Oscar Nominees JSON
{
"categories": [{
"category": {
"name": "Actor in a Leading Role",
"nominees": [{
"person": "Riz Ahmed",
"movie": "Sound of Metal"
},
{
"person": "Chadwick Boseman",
@rockarts
rockarts / silicon_valley.txt
Created November 23, 2020 01:50
Silicon Valley Binary
01100110 01101001 01101110 01100100 00100000 01100001 00100000 01101000 01101111 01100010 01100010 01111001 00100000 01100110 01101111 01110010 00100000 01100111 01101111 01100100 00100111 01110011 00100000 01110011 01100001 01101011 01100101 00100000 01100110 01101001 01101110 01100100 00100000 01100001 00100000 01101000 01101111 01100010 01100010 01111001 00100000 01100110 01101111 01110010 00100000 01100111 01101111 01100100 00100111 01110011 00100000 01110011 01100001 01101011 01100101
@rockarts
rockarts / trie.ts
Created September 4, 2020 03:40
Trie in Typescript
class TrieNode {
parent: TrieNode | null;
children: any = {}
key: string | null;
isTerminating = false
constructor(key: string | null, parent: TrieNode | null) {
this.key = key;
this.parent = parent
}
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let draw = DrawView(frame: self.view.bounds)
view.addSubview(draw)
}
for xvalue in stride(from: x, through: width, by: step) {
for yvalue in stride(from: y, through: height, by: step) {
drawLine(x: xvalue,y: yvalue, width: step, height: step)
}
}