Skip to content

Instantly share code, notes, and snippets.

View larsenwork's full-sized avatar
🦁

Andreas Larsen larsenwork

🦁
View GitHub Profile
@larsenwork
larsenwork / 1-Template.md
Last active January 28, 2022 14:07
Bug Reports

Steps to reproduce

  1. Write here
  2. Write here
# 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
larsenwork / overlay.css
Last active October 15, 2019 03:52
Momondo Grid Overlay
: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
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".
* {
-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
larsenwork / Bash Profile.md
Created June 29, 2015 22:21
.bash_profile

Open bash profile

alias profile='nano .bash_profile'

Hide/show hidden files in Finder

alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'

Run a simple web server

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
larsenwork / gist:ee78d2f28880ec26c405
Created May 27, 2015 12:29
brew fontforge error mac
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
larsenwork / No Bullshit Font License.txt
Last active August 29, 2015 14:19
A new font license
NO BULLSHIT FONT LICENSE
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
larsenwork / AsciiGlobe.md
Last active August 29, 2015 14:17
Pixelated globe

As used on gidole.github.io

                                           
                ···········                
             @@···············             
           @@@·········@@@@@@···           
         @@@·@@·······@@@·@@@·@@··         
        @@@··········@@@@·@@@@@@@@@        
       ·@@········@···@@@··@@@@@@@@@       
@larsenwork
larsenwork / CustomSkrollrEasing.md
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>
<script>
 $(function() { var s = skrollr.init({