Skip to content

Instantly share code, notes, and snippets.

View vnys's full-sized avatar

Victor Nystad vnys

View GitHub Profile
@vnys
vnys / gist:52042c5d83098304b9aa
Last active August 29, 2015 14:16 — forked from samnang/gist:1759336
Install bash on os x
# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar xzf bash-4.3.tar.gz
cd bash-4.3
./configure --prefix=/usr/local && make && sudo make install
# Add the new shell to the list of legit shells
@vnys
vnys / remux-hop
Last active August 29, 2015 14:16 — forked from cybic/remux-hop
#!/bin/bash
#
# AutoSSH to host and create or connect to tmux session
# Multi-hop version. Separate hops with :
#
# Author: Oystein Steimler <[email protected]>
HLIST=$1;
IFS=':' read -a HOPS <<< "$HLIST"
@vnys
vnys / gulp-php.js
Last active August 29, 2015 14:17 — forked from jasonrhodes/gulp-php.js
var through = require("through2");
var exec = require("child_process").exec;
// through2 docs: https://github.com/rvagg/through2
module.exports = function (options) {
// Not necessary to accept options but nice in case you add them later
options = options || {};
@vnys
vnys / TODO.md
Last active August 29, 2015 14:18
Dr. Front
  • oa og oblad må få kopi av havis sitt abo-ikon med endret farge
  • legacy xe-ikoner for video
  • snippets
@vnys
vnys / drfront.css
Last active August 29, 2015 14:19
Dr. Front CSS bug
@import '../legacy/legacy.css'; */
.drfront {
/* CSS Reset */
/* Default CSS */
line-height: 1;
color: black;
width: 400px;
}
@vnys
vnys / sonar.css
Created April 14, 2015 09:47
Dr. Front sonar-animasjon
.df-style-breakingnews--black {
&[class*=df-fs],
[class*=df-fs] {
&::before { border-color: var(--swatch-highlights-black) }
&::after { background-color: var(--swatch-highlights-black) }
}
}
.df-style-breakingnews--white {
&[class*=df-fs],

Max Shank sitt Kettlebell-program

Basert på supersets og aktiv hvile. Istedetfor lange pause mellom settene, hviler man ut mens man tøyer. Jeg er ikke helt der ennå, jeg tar et minutts hvile i tillegg, men det er det som er målet.

Superset 1 - 5 runder

  1. Reverse turkish getup (eventuelt tradisjonell turkish getup - en gang per side
  2. Swings - 10 repetisjoner med tung kettlebell, eventuelt 10 per arm med en lettere en
  3. Hofteleddsbøyertøying - 10 pust per side

Superset 2 - 5 runder

@vnys
vnys / fiks.html
Last active August 29, 2015 14:20
Forskjell på fotballdata og fiks
<table class="fogisSortTable" id="fogisInfoTable">
<thead>
<tr>
<th id="thAnmaldLag" class="header headerSortDown">
Hovedlag
</th>
<th id="th1" class="header">
<nobr>Lagnavn i turn.</nobr>
</th>
<th id="thAnmaldTavlingskategori" class="header">
@vnys
vnys / 1.es6-custom-elements-intro.md
Last active February 10, 2016 20:52
es6 custom element

ES6 class syntax and custom elements with Babel

Babel's _inherits function requires the super class to be a function or null, but in Safari typeof HTMLElement is an object. Full explaination on babel/babel#1548

This solution is based on the proposed solution, but instead of rewriting HTMLElement – we just extend the function – which is safer.

@vnys
vnys / circle.svg
Last active November 23, 2015 10:43
svg circle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.