Skip to content

Instantly share code, notes, and snippets.

@brookskindle
brookskindle / arraySize.c
Created February 1, 2013 00:42
quick way to find the size of an array in C
#include <stdio.h>
int main(void)
{
int arr[] = {45, 69, 27, 3, 99, -1, 0, 948, 34, 46};
int size = 0;
size = sizeof(arr) / sizeof(int);
printf("Size: %d.", size);
@brookskindle
brookskindle / ramblings!~
Created January 31, 2013 03:30
push vs push -u
git push -u github master
is way better than
git push github master.
-u allows you to push your master branch to github with more ease in the future:
from then on, just type
git push
and as long as you're on your master branch, it will automatically push your master branch to github!