Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wneh on github.
  • I am wneh (https://keybase.io/wneh) on keybase.
  • I have a public key whose fingerprint is 9CCB E465 D954 C53A 7801 76F5 CED9 B596 CC4D 889A

To claim this, I am signing this object:

@Wneh
Wneh / base64convert.go
Last active December 21, 2015 06:49
Convert the content of file in args[1] to base64 and saves it to the location in args[2] Example: $ go run base64convert ./foo.pdf ./fooInBase64.txt
package main
import (
"encoding/base64"
"fmt"
"os"
"io/ioutil"
)
// Take the file specified in args[1]
@Wneh
Wneh / youtube alert link
Last active December 16, 2015 04:48
youtube alert link
@Wneh
Wneh / pallinda2latex.sh
Last active December 15, 2015 06:29
Script that autogenerate a pdf using latex with all the source code content in a folder Start it with the first parameter as the path to the folder that contains the source code files
#!/bin/sh
#Copyright (C) <2013> <Carl Eriksson>
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
#"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
#distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
#the following conditions:
#
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@Wneh
Wneh / fsTusenAvDelareDecode.vb
Last active December 11, 2015 00:48
Help functions for insert/remove of "," in a vb like language
//Denna funktion tar in en redan sträng
//som är kodad med tusenavgränsare och tar bort dem
//
//sTal = Det talet man ska göra om
function str fsTusenAvDelareDecode(str sTal)
begin
//Variabler
int iR
int iLen
str sKlar
@Wneh
Wneh / ConsoleTable.java
Created November 24, 2012 10:37
Java class that prints a matrix/table to the console
/* The MIT License (MIT)
* Copyright (c) 2012 Carl Eriksson
*
* Permission is hereby granted, free of charge, to any person obtaininga
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction,including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the Software
* is furnished to do so, subject to the following conditions:
*
@Wneh
Wneh / Namn A
Created July 3, 2012 20:08
Nummer 2
2aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
@Wneh
Wneh / Rubrik a
Created July 3, 2012 07:52
Nummer 1
1aaaaaaaa