Skip to content

Instantly share code, notes, and snippets.

View raclettes's full-sized avatar
🏔️

Jacob MacKenzie-Websdale raclettes

🏔️
View GitHub Profile
@raclettes
raclettes / README.md
Created November 24, 2022 23:49
React internal state tree control

Example usages of functions

To read state tree into a variable

// Anti-circular reference formatter
const getCircularReplacer = () => {
    const seen = new WeakSet();
    return (key: any, value: any) => {
        if (typeof value === "object" && value !== null) {

Days

Days have been titled with HTML comments, but they look like this

<!-- Friday 13th -->
<div class="block-title">Friday 13th</div>
<div class="list">
    <ul>
        <!-- events -->
    </ul>
</div>

Usage

Use the above file, replacing...

  • {URL of shortener} by the root URL where you have the shortener installed. For example https://nlsn.cf/
  • {github token} your github access token
  • {repo} by your username and repo in full. For example nelsontky/gh-pages-url-shortener-db

Extra information

document.getElementsByClassName('custom-options')[0].addEventListener('click', function() {
let lang = localStorage.getItem('lang');
let greeting = document.getElementById('greetings');
if (reg_name == 1) {
let span = document.getElementById('spanName');
switch(lang) {
case "укр":
greeting.innerHTML = "Ласкаво просимо до<br>Gradder" + "<span id='spanName'>, " + firstName + "</span>";
span.style.opacity = "1";
break;
0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000a 000b 000c 000d 000e 000f 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 001a 001b 001c 001d 001e 001f
0000 12 15 26 12 12 24 22 15 17 14 16 29 15 13 13 25 25 20 12 13 28 18 24 22 17 18 16 19 17 11 20 25
0001 16 16 17 26 18 15 22 10 13 19 17 20 17 31 27 12 25 10 10 10 35 12 16 15 19 20 26 30 13 14 17 21
0002 14 15 21 22 10 15 10 17 13 13 27 18 11 19 17 12 15 20 19 17 25 16 19 25 21 11 13 22 17 23 29 16
0003 22 30 14 27 18 13 15 29 26 24 29 20 13 21 33 19 29 15 25 14 10 10 19 11 18 15 20 17 28 11 26 30
0004 17 14 19 16 19 11 23 11 19 13 15 12 22 11 21 16 14 14 19 13 11 14 21 19 13 10 13 13 23 23 20 26
:- func main (i32, s*) = i32
main := (argc, args)
System.Console.WriteLine("Hello, World.")

Quadrilateral

Template

. . . . . And so on
. . . . . And so on
. . . . . And so on
. . . . . And so on

Cat

//---------------------------------------------------------------------------\\
// vim: ft=mercury ts=4 sw=4 et \\
//---------------------------------------------------------------------------\\
// Highlight with mercury for better looks \\
:- import stdlib/io
:- func say_hello string = nothing
say_hello(name) =
write("Hello, " + name + "!")
GD
GFCA+
-Da+
-
-BA
FDC+
-cd
-FDBA
Hea+
-BA+
@raclettes
raclettes / Code.spade.rb
Last active May 7, 2017 10:48
An example of Spade programming language for Bukkit
when :playerJoin do |activity,player|
# Unlike Ruby, the `?` turns any datatype to a bool, depending on whether it has content
# False ->
# # 0, "", false, 0.0, [], {}, nil, undefined
# True ->
# # Everything else.
if player.meta.banned? == true
player.kick player.meta.banned
activity.cancel
else