Skip to content

Instantly share code, notes, and snippets.

View madr's full-sized avatar
🤘
Elixir, React, Phoenix Liveview, Rust.

Anders Englöf Ytterström madr

🤘
Elixir, React, Phoenix Liveview, Rust.
View GitHub Profile
netstat -rn
@madr
madr / autoexec.cfg
Last active November 15, 2015 00:18
chat wheels
bind G "+chatwheel; chat0"
alias chat0 "chat_wheel_phrase_0 50;chat_wheel_phrase_1 2;chat_wheel_phrase_2 7;chat_wheel_phrase_3 6;chat_wheel_phrase_4 44;chat_wheel_phrase_5 21;chat_wheel_phrase_6 78;chat_wheel_phrase_7 32;"
bind H "+chatwheel; chat1"
alias chat1 "chat_wheel_phrase_0 66;chat_wheel_phrase_1 69;chat_wheel_phrase_2 65;chat_wheel_phrase_3 70;chat_wheel_phrase_4 68;chat_wheel_phrase_5 62;chat_wheel_phrase_6 60;chat_wheel_phrase_7 85;"
@madr
madr / rutnät.scss
Created November 3, 2015 15:39
simple bootstrap for your own grid system
@charset "utf-8";
// Grids, loosely based on Flexbox grid:
// https://github.com/kristoferjoseph/flexboxgrid
// extend to use flexbox
%row {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
@madr
madr / sync.sh
Created September 2, 2015 09:24
Download whole site recursively over FTP using wget
# set --cut-dir to the no parents that should be omitted (in this case 2: a and b)
wget -nv -r -nH --cut-dirs=2 ftp://<username>:<passwd>@<server>/a/b/
@madr
madr / original-simplified.css
Last active August 29, 2015 14:27
OOCSS grids, flexbox edition
.line {
overflow: hidden;
}
.unit {
float: left;
box-sizing: border-box;
}
.size1of1 { float: none; }
for (var i = 0, max = json.length; i < max; i++) {
selectElm.innerHTML += "<option value='" +json["id"] + "'>" + json["foretag"] + "</option>";
}
@madr
madr / get_contrast_yiq.py
Last active August 29, 2015 14:20
Contrast check: determine foreground color
'''
based on: http://24ways.org/2010/calculating-color-contrast/
accepts hex colors with 3 or 6 chars. hash-char is optional.
'''
def get_contrast_yiq(hex_color):
hex_color = hex_color.replace("#", "")
if len(hex_color) == 3:
hex_color = "".join([c + c for c in hex_color])
@madr
madr / view.php
Created April 30, 2015 07:33
view.php
<?php
/**
* view.php
*
* simple view class, template-based.
* @todo indent markup using tidy?
*
* $Rev$
* $Author$
* $Date$
@madr
madr / howto.md
Created April 19, 2015 14:25
Heroes of the Storm on Elementary Freya

So you want to run Diablo III on Linux? Hopefully this general installation guide helps some of you into doing that.

Why write this up?

Well, in the past there have been several threads that popped up about running the game on linux. Some of them were just that they couldn't get the program to run and others were heavily distorted graphics, like in the launcher, which made things unplayable. Since Blizzard doesn't support linux then it is left up to the users to find help for their problems. While linux use is at all new highs in the consumer market making it on par with MacOS in terms of numbers the lack of a centralized forum for linux or any official support makes finding help hit or miss usually.

Hopefully this installation guide will help some of the people who want to play the game on linux but are having issues.

Lets get started!

Hej,

Härmed deklarerar jag (Förnamn Efternamn, personnummer) att jag med beklagande härmed säger upp min anställning som X på företaget Y.

Jag har uppskattat min tid på företaget och hoppas att även ni har uppskattat mitt hårda arbete, men nu söker jag mig mot nya äventyr och utmaningar.

Jag säger upp mig med enlighet av min uppsägningstid på Z, bla bla bla.

Tack for gott samarbete.