Skip to content

Instantly share code, notes, and snippets.

View cruor99's full-sized avatar

Kjetil Andre Liknes cruor99

View GitHub Profile
@cruor99
cruor99 / config
Created September 28, 2015 14:13
# M
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
class Library():
books = []
def addBooks(self, book):
self.books.append(book)
def borrowBook(self, bookname):
for book in self.books:
import java.util.ArrayList;//importere array funksjonen ifra biblioteket
import java.util.Iterator;//importere iterator funksjonen ifra biblioteket
/**
* Bibliotek prosjekt, laget for å kunne skaffe oversikt over hva som er inne
* det er ikke lagt til hvem som låner hva eller hvem utlåner er.
*
* @author (Jørn Utheim-Olsen
* @version (1.0)
*/
public class Library
import string
def encode(phrase):
final = []
rot13 = string.maketrans(
"ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuwxyz",
"NOPQRSTUVWXYZnopqrstuwxyzABCDEFGHIJKLMabcdefghijklm"
)
#include<stdio.h>
int main(void){
int c;
int e;
while((c=getchar()) !=EOF){
if(c >='A' && c<='Z'){
if((e = c + 13) <= 'Z'){
ARCH LINUX NOTES. By: Matthew_Moore
Creating and Formatting Live USB images with DD
To View Drives use
sudo fdisk -l
Creating a Live USB ( Drive Needs to be unmounted )
[%] ~/.config/nvim/config
$
if has("vim_starting")
if has("unix")
let s:uname = system("uname -s")
if s:uname == "Darwin\n"
"Mac stuff here
set runtimepath+=/Users/cruor/.config/nvim/bundle/neobundle.vim
call neobundle#begin(expand("/Users/cruor/.config/nvim/bundle"))
endif
if s:uname == "Linux\n"
let s:uname = system("echo -n \"$(uname)\"")
# coding=utf8
# version: 0.6.0
import sys
import psMat
import re
import os
import argparse
import errno
@cruor99
cruor99 / main.rs
Created March 23, 2016 15:52
blackjack thing
extern crate rand;
use rand::{thread_rng, Rng};
use std::io;
use std::option::Option;
use std::str::FromStr;
pub enum Value {
Ace,