TODO: Write a project description
TODO: Describe the installation process
import urllib2 | |
# Create dictionary | |
words = [] | |
for line in urllib2.urlopen("https://raw.githubusercontent.com/dolph/dictionary/master/enable1.txt"): | |
words.append(line) |
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
# using gcc compiler | |
CC = gcc | |
# output path and filename | |
BINARY = ./build/output | |
# sources directory | |
SRC = src/main.c | |
# includes directory |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
int main(int argc, char const *argv[]) { | |
/* benchmarking */ | |
clock_t start_t, end_t; | |
float delta_t = 0.0; | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* read string from stdin */ | |
char* readString(char end) { | |
char* string = NULL; | |
char value = '@'; | |
int counter = 0; | |
while (value != end) { |
Great references:
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
https://guides.github.com/features/mastering-markdown/
Align image/header to center:
if __name__ == '__main__': | |
try: | |
import IPython.core.ultratb | |
except ImportError: | |
# No IPython. Use default exception printing. | |
pass | |
else: | |
import sys | |
sys.excepthook = IPython.core.ultratb.ColorTB() | |
main() |