Skip to content

Instantly share code, notes, and snippets.

View jdc-cunningham's full-sized avatar

Jacob David C Cunningham jdc-cunningham

View GitHub Profile
let blockedCompanies = [
"Motion Recruitment"
"Horizontal Talent"
"REI Systems"
"Jobot Consulting"
"CyberCoders"
"Calyptus"
"INSPYR Solutions"
"TTEC Digital"
"Sphera"
@jdc-cunningham
jdc-cunningham / hn-gib-job.js
Created February 3, 2024 03:26
Hacker News dev tools console job highlighter
document.querySelectorAll('.athing.comtr').forEach(job => {
const jobText = job.innerText.toLowerCase();
const rejectWords = ['europe', 'staff', 'sr.', 'senior', 'lead', 'principal', 'uk', 'spain', 'portugal', 'netherlands', 'berlin', 'germany', 'devops', 'eu', 'platform', 'onsite', 'hybrid'];
const wantWords = ['react', 'javascript', 'python', 'rails', 'node'];
const wanted = wantWords.some(word => jobText.includes(word));
if (wanted) {
const rejected = rejectWords.some(word => jobText.includes(word));
import display
import time
disp_object = []
def display_article(title, lines):
global disp_objects
y_pos = 24
import display
import time
import gc
disp_object = []
def clear_display():
for item in disp_objects:
del(item)
# main.py ---------------------------------------------------------------------------------
f = open('main.py', 'w')
f.write('l = 3\n')
f.write('a = ""\n')
f.write('for f in range(l):\n')
f.write(' a = "\n".join(open(f"main_{f}.py").readlines())\n')
f.write('exec(a)\n')
f.close()
# main.py
import helpers
import scenes
import hn_reader
import reddit_reader
import time
time.sleep(3)
scenes.run()
from display import *
import vgr2d
def rectangle_vgr2d(self):
v = vgr2d.Rect(self.width, self.height, self.col)
return v.position(self.x, self.y)
display.Rectangle.vgr2d = rectangle_vgr2d
mario_lines = []
from display import *
Rectangle(230, 110,240,120, 0xFD0003)
Rectangle(240, 110,250,120, 0xFD0003)
Rectangle(250, 110,260,120, 0xFD0003)
Rectangle(260, 110,270,120, 0xFD0003)
Rectangle(270, 110,280,120, 0xFD0003)
Rectangle(280, 110,290,120, 0xFD0003)
Rectangle(220, 120,230,130, 0xFD0003)
Rectangle(230, 120,240,130, 0xFD0003)
Rectangle(240, 120,250,130, 0xFD0003)
import display
display.hline(230, 110, 10, 0xFD0003)
display.hline(240, 110, 10, 0xFD0003)
display.hline(250, 110, 10, 0xFD0003)
display.hline(260, 110, 10, 0xFD0003)
display.hline(270, 110, 10, 0xFD0003)
display.hline(280, 110, 10, 0xFD0003)
display.hline(220, 120, 10, 0xFD0003)
display.hline(230, 120, 10, 0xFD0003)
display.hline(240, 120, 10, 0xFD0003)
@jdc-cunningham
jdc-cunningham / flappy-bird.py
Created March 10, 2023 00:28
Flappy Bird for Monocle AR
import time
import touch
import display
bird_up = True # EricAndre
col_pos_x = 600
bird_pos_y = 280
game_over = False
def move_up(arg):