Skip to content

Instantly share code, notes, and snippets.

View cprn's full-sized avatar

cprn

  • 00:47 (UTC +02:00)
View GitHub Profile
// ==UserScript==
// @name Barter AppIDs fill
// @namespace Madjoki
// @include https://barter.vg/u/*/l*
// @include https://barter.vg/u/*/b*
// @include https://barter.vg/u/*/w*
// @version 6
// @grant GM_xmlhttpRequest
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @run-at document-start
@straker
straker / README.md
Last active May 12, 2024 12:01
Basic Snake HTML and JavaScript Game

Basic Snake HTML and JavaScript Game

Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

  • Score
  • When the snake eats an apple, the score should increase by one. Use context.fillText() to display the score to the screen
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active April 2, 2024 15:59
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1