- oa og oblad må få kopi av havis sitt abo-ikon med endret farge
- legacy xe-ikoner for video
- snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import '../legacy/legacy.css'; */ | |
| .drfront { | |
| /* CSS Reset */ | |
| /* Default CSS */ | |
| line-height: 1; | |
| color: black; | |
| width: 400px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 || {}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //<p class="txt-m">Congrats, <span class="icon icon--goldMedal" aria-hidden="true"></span> First place!</p> | |
| [ 'p', { 'class' : 'txt-m' }, 'Congrats, ', | |
| [ 'span', { 'class' : 'icon icon--goldMedal', 'aria-hidden' : 'true' } ], | |
| 'First place!' | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Quick and easy way to write inline styles in js | |
| setAttribute is not used to avoid overwriting the styles attribute if present on the element | |
| Implies you’re inside a constructor where this.el is the element to be styled | |
| */ | |
| var styles = [ | |
| ['width', '100%'], | |
| ['height', '100%'], | |
| ['background', 'orange'] |
The question: how can we use ES6 modules in Node.js, where modules-as-functions is very common? That is, given a future in which V8 supports ES6 modules:
- How can authors of function-modules convert to ES6
exportsyntax, without breaking consumers that dorequire("function-module")()? - How can consumers of function-modules use ES6
importsyntax, while not demanding that the module author rewrites his code to ES6export?
@wycats showed me a solution. It involves hooking into the loader API to do some rewriting, and using a distinguished name for the single export.
This is me eating crow for lots of false statements I've made all over Twitter today. Here it goes.