Skip to content

Instantly share code, notes, and snippets.

View ninjamar's full-sized avatar
😀
Doing programming

ninjamar

😀
Doing programming
View GitHub Profile
@ninjamar
ninjamar / q.js
Last active March 21, 2024 04:44
A JavaScript library
/*
This whole module is a work in progress for me to use
TODO: Rename module to something else from q
*/
class QElement {
constructor($element){
// this.listeners = {};
this.$element = $element;
}
q(selector){
@ninjamar
ninjamar / main.py
Last active December 5, 2021 00:12
Scratch User Status
import re
import requests
user = 'ninjamar'
r = requests.get(f'https://scratch.mit.edu/users/{user}')
c = ''.join([i.decode().strip() for i in r.iter_lines()])
iscratcher = re.compile("<span class=\"group\">Scratcher</span>")
isscratchteam = re.compile("<span class=\"group\">Scratch Team</span>")
@ninjamar
ninjamar / scratch-ninjamar-no-js-css.txt
Created November 29, 2021 11:04
Scratch with no JS and CSS
* Create
* Explore
* Ideas
* About
Submit
*
@ninjamar
ninjamar / cheetsheet.md
Last active November 18, 2021 00:23
Emacs cheetsheet

Cheetsheet

The M key is option on mac
Press M and X at the same time (M-X) to open the command line emacs thing

  • Type tetris after that to open tetris
  • Type snake after that to open snake