Skip to content

Instantly share code, notes, and snippets.

Avatar

Viktor Eriksson vikeri

  • Stockholm, Sweden
View GitHub Profile
@stchris
stchris / Dockerfile
Created Jun 17, 2019
Alpine Linux Dockerfile to install magic-wormhole
View Dockerfile
# This installs https://github.com/warner/magic-wormhole (a nifty
# utility to securely send stuff from one computer to another) on
# Alpine Linux
FROM alpine
RUN apk update && apk add build-base python3-dev libffi-dev openssl-dev && pip3 install magic-wormhole
@rtorr
rtorr / README.md
Last active Feb 14, 2021
Visual Studio Code fish shell shortcut
View README.md

Put this in your config.fish

run

code path/to/project

@john2x
john2x / 00_destructuring.md
Last active Jun 20, 2021
Clojure Destructuring Tutorial and Cheat Sheet
View 00_destructuring.md

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@larrybotha
larrybotha / A.markdown
Last active Mar 15, 2021
Fix SVGs not scaling in IE9, IE10, and IE11
View A.markdown

Fix SVG in <img> tags not scaling in IE9, IE10, IE11

IE9, IE10, and IE11 don't properly scale SVG files added with img tags when viewBox, width and height attributes are specified. View this codepen on the different browsers.

Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.

Use sed in bash to remove width and height attributes in SVG files

As per this answer on Stackoverflow, the issue can be resolved by removing just the width and height attributes.

@brandonb927
brandonb927 / osx-for-hackers.sh
Last active Jun 14, 2021
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
View osx-for-hackers.sh
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx