Skip to content

Instantly share code, notes, and snippets.

View lyxal's full-sized avatar
🍔
It's a regional dialect

lyxal lyxal

🍔
It's a regional dialect
  • ‏ɹ‏‏ǝ‏‏p‏‏u‏‏n ‏u‏ʍ‏‏‏o‏‏p‏ ‏p‏‏u‏‏ɐ‏‏l ‏ǝ‏‏‏ɥ‏‏‏ʇ‏ • ‏ɐ‏‏ᴉ‏‏l‏‏ɐ‏‏ɹ‏‏ʇ‏‏s‏‏n‏‏∀‏
  • 06:30 (UTC +11:00)
View GitHub Profile
@lyxal
lyxal / SpamCompilation.txt
Last active August 19, 2024 13:02
The Compilation of Spammers on PLDI
2024 Users:
https://langdev.stackexchange.com/users/3632/Nimadia Spam
https://langdev.stackexchange.com/users/3610/GoGetDeals spam
https://langdev.stackexchange.com/users/3589/8xbet spam
https://langdev.stackexchange.com/users/3561/Power Generation Enterprises
https://langdev.stackexchange.com/users/3564/spammy sammy
https://langdev.stackexchange.com/users/3563/Weath Spam
https://langdev.stackexchange.com/users/3565/Soul Mart
https://langdev.stackexchange.com/users/3592/8xbet
https://langdev.stackexchange.com/users/3556/Bath Estimates
@Seggan
Seggan / ops.txt
Last active January 28, 2023 02:23
Fig operators
char (arity) - desc
whitespace - nop
newline - Starts a new function
! (1) - (any) logical not
" - String literal
# - Misc digraph char
$ (1) - (any) reverse
% (2) - (num, num) b mod a, (str, any) replace % in a with b
& (2) - (num, num) bitwise AND
===================
| Learning Jelly |
===================
Programs are made of links. Links are made of chains. Chains are made of atoms. Atoms have a fixed arity.
Each link's chains are evaluated according to a set of predefined "rules".
Links can be niladic (called with 0 arguments), monadic (called with 1 argument) or dyadic (called with 2 arguments)
Nilads have arity 0, monads have arity 1 and dyads have arity 2
⊞θ₂ΣXθ²F =+«←←←ι←G↑←↓⊟θ#
⊞θ₂ # Create a template square with size (a^2)
ΣXθ² # Repeat that code but with the second input
F =+ # Push the 3 character string " =+"
« # Reverse it and insert the characters in between the template squares
←←← # Compute sqrt(a^2 + b^2) [3 byte function]
ι← # Use the code to create the template square and generate one based on the prior result
G↑← # Join everything together into a list and make it into a template
⊟θ# # Substitute # into the template and output
@danielcristofani
danielcristofani / brainfuck_function_tutorial.b
Last active March 27, 2021 12:20
A way to do functions in brainfuck.
[How to do functions in brainfuck.
Okay. We'll translate the following program into brainfuck, with no thought of efficiency:
char fib (char a){
switch(a):
case 0: return 0
case 1: return 1
default: return fib(a-2)+fib(a-1)
}
@Ksengine
Ksengine / kalculator.py
Last active December 5, 2020 10:23
# Kalculator
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import readline # for better console text edit experience
def isnumeric(number):
for num in range(10):
if str(number[-1])==str(num):
return True
@m-ender
m-ender / simple-challenges.md
Last active February 24, 2022 23:07
Simple challenges on CodeGolf.SE to take new programming languages for a spin.
@ap0llo
ap0llo / Export-VisioDrawing.ps1
Last active May 15, 2024 00:18
Powershell script that exports Visio drawings in the current directory to png
# Powershell script that exports visio drawings to png
# Based on a F# script with the same purpose which can be found at
# http://stackoverflow.com/questions/1145269/visio-to-image-command-line-conversion
$outputFormat = ".png"
$inputFilePattern = "*.vsdx"
# Load Visio Interop Assembly
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Visio") > $null