Skip to content

Instantly share code, notes, and snippets.

View dfischer's full-sized avatar
🔥
cooking

0x44 0x46 dfischer

🔥
cooking
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dfischer on github.
  • I am dfischer (https://keybase.io/dfischer) on keybase.
  • I have a public key ASAlDx8ENF5nG0DifHA14LLzP6O9QxhKQFJAYpbRtPHqBwo

To claim this, I am signing this object:

@dfischer
dfischer / Powerline.md
Created April 26, 2018 02:49 — forked from mrkara/Powerline.md
Install Powerline on Debian 9 Stretch
  1. Install pip sudo apt-get install python-pip
  2. Install powerline sudo pip install powerline-status
  3. Install fonts sudo apt-get install fonts-powerline
  4. Add these lines to respective files:

.vimrc > set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/

### Keybase proof
I hereby claim:
* I am dfischer on github.
* I am dfischer (https://keybase.io/dfischer) on keybase.
* I have a public key ASCg-I6eyGoupYkXitR33YFz3xANPE9utzq3nDJjuBEw5go
To claim this, I am signing this object:
// Separate url validation logic from Replies.sayInvalidLinkedInUrl side effect.
// This way you can reuse this function in other methods
const getUrlFromEvent = (event) => Maybe.of(event)
.filter(x => event.message.nlp.entities.url)
.filter(x => event.message.nlp.entities.url[0].domain !== 'linkedin.com')
.chain(x => Maybe.fromNullable(extract(event.message.nlp.entities.url)))
consume.onUserState('preferences/linkedin/url', ({ event, userId }) => getUrlFromEvent(event)
.caseOf({
Just: (url) => Promise.all([User.updatePreferences(userId, {linkedIn: url[0]}), Dispatch.linkedInUrlReceived({ userId })]),
@dfischer
dfischer / deploy.sh
Last active August 16, 2018 11:52
Gitlab.com deploy detect changes in folder
#!/bin/bash
set -e
export LAST_COMMIT=$(
curl --header "Private-Token: $PRIV_TOKEN" https://gitlab.com/api/v4/projects/SOMEPROJECT/pipelines | jq -e -r '[.[] | select(.ref=="master") ] | .[1].sha'
)
if [[ $(git diff $LAST_COMMIT --name-only | grep admin) ]]; then
echo admin deploying, detected changes
else
@dfischer
dfischer / index.html
Created February 5, 2019 01:44
Side-saddle scrollytelling with position sticky and enterview
<section class='filler'>
<p>
Scroll
</p>
</section>
<section id='scrolly-side'>
<div class='scrolly'>
@dfischer
dfischer / index.html
Created February 5, 2019 01:59
Scrollytelling with position sticky
<h1>Scrollytelling with position: sticky</h1>
<section>
<figure>
<p>A sticky item</p>
</figure>
<article>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum tellus felis, at lobortis orci sollicitudin ac. Donec lobortis sapien ac posuere faucibus. Mauris lectus neque, pretium non volutpat eget, vestibulum at magna. In sollicitudin augue nunc, non bibendum augue ornare quis.</p>
# ~/.config/fish/config.fish
eval (starship init fish)
status --is-interactive; and source (pyenv init -|psub)
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
set -g fish_user_paths "/Users/dfischer/.emacs.d/bin" $fish_user_paths
set -g fish_user_paths "/Users/dfischer/.dotfiles/bin" $fish_user_paths
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<edit mode="prepend" name="family"><string>Noto Sans</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Serif</string></edit>
</match>