Skip to content

Instantly share code, notes, and snippets.

View Hillmonkey's full-sized avatar

Larry Madeo Hillmonkey

  • San Francisco
View GitHub Profile
@Hillmonkey
Hillmonkey / README.md
Created December 30, 2017 00:18 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
#!/bin/bash
# betty now accepts multiple command line arguments
# example usage: betty *.c
for var in "$@"
do
printf "\n"
echo "========== $var =========="
~/Betty/betty-doc.pl "$var"
~/Betty/betty-style.pl "$var"
done
@Hillmonkey
Hillmonkey / example.c
Created March 3, 2017 18:22
zero pointer
#include <stdio.h>
int main(void) {
char c[] = {1, 2];
printf("%p\n", &c[0]);
printf("%p\n", &0[c]);
return(0); }