This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strconv" | |
) | |
// Copyright (C) 2023 Gabriel de Brito |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open List;; | |
(* | |
* Copyright (C) 2023 Gabriel de Brito | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
/* | |
* uwufiew, weceives inpuwut fwom standawt inpuwut ow fiwes and concatenates a | |
* uwufiewd vewsion to the standawt ouwutpuwut. | |
* | |
* fwee softwawe, wincesed uwundew the MIT wicense, youwu shouwuwd have | |
* weceived a copy of the wicense awong with the pwogwam. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Maybe this should be illegal? This is a program that RETURNS the factorial of | |
* the number of cli args it receives, by recursivelly calling main. | |
* | |
* License: The Unlicense License | |
* Original author: Gabriel G. de Brito | |
*/ | |
int main(int argc, char *argv[]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns testapp.core | |
(:gen-class)) | |
(defn rule110 [a b c] | |
(case [a b c] | |
[1 1 1] 0 | |
[1 1 0] 1 | |
[1 0 1] 1 | |
[1 0 0] 0 | |
[0 1 1] 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local oldprint = print | |
print = function(a) | |
oldprint("load print: " .. a) | |
end | |
a = 1 | |
local f = load "print(a)" | |
f() -- this will print 'load print: 1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S tcc -run | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <time.h> | |
/* | |
* Copyright (C) 2023 Gabriel de Brito | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#define printarr(v, n) { \ | |
for (int i = 0; i < n - 1; i++) \ | |
printf("%d ", v[i]); \ | |
printf("%d\n", v[n - 1]); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
typedef struct LL { | |
int d; | |
struct LL *r; | |
} LL; | |
LL *cons(int d, LL *r) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cybercafe (Soft) theme for Kakoune by Gabriel de Brito | |
# | |
# Copyright (C) 2023 Gabriel de Brito | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
OlderNewer