Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>
#define p printf
#define n(X)
#define class struct{struct
#define HelloWorld
#define public int x;}out;}System;
#define static
#define void int
#define String int a,char*
#define println(X) x;p(" _ _ _ \
#!/bin/sh
set -ue
echo "Resetting /etc/hosts"
cat /etc/hosts.def > /etc/hosts
echo "Populating /etc/hosts"
curl "http://winhelp2002.mvps.org/hosts.txt" >> /etc/hosts
curl "https://adaway.org/hosts.txt" >> /etc/hosts
@io12
io12 / ;.c
Created January 23, 2017 23:22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
#include <stdio.h> ;;
;;
void print(char *str); ;;
;;
int main(void) { ;;
print("Hello world!"); ;;;;;;;;;;;;;;
return 0; ;; ;;
} ;; ;;
#define forever for (;;)
#define until(is_true) while (!(is_true))
#define unless(is_true) if (!(is_true))
#define not !
#define and &&
#define or ||
#define a b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b
#define b c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c
#define c d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d d
#define d e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e
#define e f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
#include <limits.h>
#include <stdio.h>
int main(void)
{
int i, j, c;
printf("typedef void (*a)(void);\n");
for (i = 0; i < 25; i++) {
c = i + 'a';
@io12
io12 / type.c
Last active August 23, 2017 19:41
#include <stdio.h>
#include <stdlib.h>
#define LEN(x) (sizeof(x) / sizeof(x[0]))
/*
* Declare `arr`, an array of four pointers to arrays of two function pointers
* to a function that accepts a pointer to a two by two two dimensional array
* of ints as a parameter and returns an int.
*/
/*
$----------------$
| Example usage: |
$----------------$------------------------------------------------------$
| #include <stdbool.h> |
| #include <stdio.h> |
| |
| #include "func.h" |
| |
| LIST_TYPE(int) |
// Prints a 4GB 'L'
#include <limits.h>
#include <stdio.h>
int main(void)
{
int i;
putchar('L');
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, const char *argv[])
{
FILE *fp;
int c;
unsigned int lineno = 1, colno = 1;