Skip to content

Instantly share code, notes, and snippets.

View Inkering's full-sized avatar
📰
✍️

Dieter Brehm Inkering

📰
✍️
View GitHub Profile
@Inkering
Inkering / .vimrc
Created October 3, 2017 16:05
vimrc I like
" A Simple Vimrc
" By Dieter Brehm
" github/Inkering
set nocompatible " be iMproved, requires
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
;;; Emacs Config
;;;; indentation
(setq c-default-style "linux"
c-basic-offset 4
sgml-basic-offset 4)
(c-set-offset `inline-open 0)
(setq-default tab-width 4)
;;; Emacs Config
;;;; indentation
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq c-default-style "linux"
@Inkering
Inkering / base64EncodeDecode.cs
Last active January 16, 2017 14:36
Two methods to encode and decode base64 strings of text
public static string Base64Encode(string someText)
{
var plainText = System.Text.Encoding.UTF8.GetBytes(someText);
return System.Convert.ToBase64String(plainText);
}
public static string Base64Decode(string someText)
{
var encodedtext = System.Convert.FromBase64String(someText);
return System.Text.Encoding.UTF8.GetString(encodedtext);
}