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
git branch --list -q | sed 's/[\*\ ]*//g' |
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
public class Foo implements Cloneable { | |
static class Bar { | |
public int i; | |
public Bar() { } | |
} | |
static class Qux { | |
public int a[]; | |
public int b; | |
public Qux() { } | |
} |
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
TAGS := .tags | |
OUT := out | |
DEBUG_CFLAGS:=-Wextra -Wall -Wshadow -Wno-strict-aliasing -Woverflow -Wno-unused-parameter -Wno-unused-variable -g -pipe -march=native | |
CFLAGS:= -pipe -O2 -march=native | |
.PHONY: default debug tags out_run | |
out_run: run | |
./$(OUT) | |
out: | |
$(CC) $(CFLAGS) *.c -o $(OUT) | |
debug: |
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
interface Likeable { | |
void like(); | |
int getLikes(); | |
} |
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 <string.h> | |
#include <stdlib.h> | |
struct studentRecord | |
{ | |
char lastName[100]; | |
char firstName[100]; | |
long studentId; | |
double mark; | |
}; |
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 <stdlib.h> | |
#include <stdio.h> | |
struct car{ | |
char make[30]; | |
char model[30]; | |
int year; | |
int mileage; | |
}; |
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
class AStack implements Stack { | |
public static final int MAX_ITEMS = 1000; | |
public static final int ITERATIONS = 9; | |
private int items[] = new int[MAX_ITEMS]; | |
private int i = 0; | |
public void push(int item) { | |
if (i < MAX_ITEMS) { |
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
options i915 enable_rc6=1 enable_fbc=1 semaphores=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
#!/bin/bash | |
# ______ __ __ __ | |
# / ____/_ ____ __ / / / /_ ______ _/ /_ ___ _____ | |
# / / __/ / / / / / / / /_/ / / / / __ `/ __ \/ _ \/ ___/ | |
# / /_/ / /_/ / /_/ / / __ / /_/ / /_/ / / / / __(__ ) | |
# \____/\__,_/\__, / /_/ /_/\__,_/\__, /_/ /_/\___/____/ | |
# /____/ /____/ | |
A="$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 <stdio.h> | |
#include <time.h> | |
#include <sys/time.h> | |
#define ITERATIONS 10000000 | |
// This is the result of me mocking other students in a class who insisted on | |
// printing out the bits of a byte using a for loop. The requirement was to | |
// print the byte as '0000 0000' with a space. I insisted that a for loop is |