Skip to content

Instantly share code, notes, and snippets.


Andreas Larsen larsenwork

View GitHub Profile
larsenwork /
Last active January 28, 2022 14:07
Bug Reports
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
larsenwork / overlay.css
Last active October 15, 2019 03:52
Momondo Grid Overlay
View overlay.css
:root {
/* Global settings */
--grid-display: block; /* Toggle grid visibility with "block" or "none" */
--grid-z_index: 1000; /* The z-index should be bigger than any used on the site */
/* Grid settings */
--grid-columns: 6;
--grid-baseline: 4px;
--grid-baseline-top: 3px; /* Must be smaller than grid-baseline */
--grid-offset: 16px;
larsenwork / MonoidAtom.scss
Last active July 15, 2021 14:47
The code below enables contextual alternates and ligatures but disables them on your `cursor-line` so you don't sacrifice "editability".
View MonoidAtom.scss
* {
-webkit-font-smoothing: antialiased;
-webkit-font-feature-settings: "liga" on, "calt" on;
atom-text-editor .cursor-line {
-webkit-font-feature-settings: "liga" off, "calt" off;
larsenwork / Bash
Created June 29, 2015 22:21
View Bash

Open bash profile

alias profile='nano .bash_profile'

Hide/show hidden files in Finder

alias showFiles='defaults write AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/'
alias hideFiles='defaults write AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/'

Run a simple web server

View gist:f2fb50446841ce552649
This file has been truncated, but you can view the full file.
Last login: Thu May 28 09:29:29 on ttys001
ambp:~ andreaslarsen$ brew uninstall -v --debug --with-giflib --with-x11 --with-libspiro fontforge --HEAD
Uninstalling /usr/local/Cellar/fontforge/HEAD... (1300 files, 43M)
rm /usr/local/bin/fontforge
rm /usr/local/bin/fontimage
rm /usr/local/bin/fontlint
rm /usr/local/bin/sfddiff
rm /usr/local/include/fontforge
rm /usr/local/lib/libfontforge.2.dylib
rm /usr/local/lib/libfontforge.a
larsenwork / gist:ee78d2f28880ec26c405
Created May 27, 2015 12:29
brew fontforge error mac
View gist:ee78d2f28880ec26c405
Last login: Wed May 27 08:04:52 on ttys001
ambp:~ andreaslarsen$ brew install -v --debug --with-giflib --with-x11 --with-libspiro fontforge --HEAD
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/fontforge.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/autoconf.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/automake.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/xz.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/libtool.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/gettext.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/pango.rb
larsenwork / No Bullshit Font License.txt
Last active August 29, 2015 14:19
A new font license
View No Bullshit Font License.txt
Copyright (c) <year>, <copyrightholder>
"Font" refers to the set of files and their parts released by the Copyright
Holder(s) under this license. This may include source files, build scripts
and documentation.
Redistribution and use of the Font, with or without modification, is
permitted provided that the following conditions are met:
larsenwork /
Last active August 29, 2015 14:17
Pixelated globe

As used on

larsenwork /
Last active August 29, 2015 14:17
How to convert Tim Groleau's easing functions into Skrollr easing functions

Use this generator

Insert the polynomial coeficients given by the generator instead of t, t2, t3, t4 and t5

t5*(p*p*p*p*p) + t4*(p*p*p*p) + t3*(p*p*p) + t2*(p*p) + t*p

Example shown for easeOutElasticBig

<div data-0="opacity[easeOutElasticBig]:0"></div>
 $(function() { var s = skrollr.init({