Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
Chameleon sports corvette with four buffalo-wing side door slide doors?

Jakob Steinn jstoone

🔥
Chameleon sports corvette with four buffalo-wing side door slide doors?
View GitHub Profile
@jstoone
jstoone / init.vim
Created Nov 25, 2018
Neovim config
View init.vim
"-----------------
" Init
"-----------------
if empty(glob('~/.config/nvim/autoload/plug.vim'))
" Auto-install vim-plug
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd!
autocmd VimEnter * PlugInstall
endif
@jstoone
jstoone / bot-feedback.md
Last active Aug 28, 2018
Feedback: Laracon EU Bot
View bot-feedback.md

Would it be possible to clear the "⭐️ date ⭐️" together with the menu It would remove a lot of clutter from the chat and only preserve the "success"-feedback about the talk being added.

Would it be possible to output my answer to edit|keep schedule or add|skip reminders? It would preserve the conversational context a bit more. It does not have to be a genuine message. A "You: Please edit"-line would suffice:

You are subscribed to notifications right before one of your subscribed talks will start. Still fine with that?
You: Yes please
Nice 👍 I will notify you then. See you around.
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View jstoone.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNjk3CWNY3sT+NUPYelzYoWpDERAMoOkN2mMLLG3Jremc2zs9hclfKBEXefdaDgrtDPQadTNicQMDZ/QjMi+YCDxya1pzh2BIsoLWZvO2TVroax4HmBj2cJdaO2rSNYEVHCOc2blmGkP7dS8Srk8PxS3UkUsBIHbqVKBBjC67VHKqMr9E/hjfNVNI24bUgdX8t3cQBDijWFop/r0XyKYHgw9SSA8jXNLsSC9+wPbDg1w6DZ05OIHXe+9TzvqVqG0HZJChSRVWOmkVPda/1T+HkBhgQTlmaAWKX7PhYA1IfJ0ntuCu5KbvdgdoMq/y03jUkUe+izicrqlWwkMJxDykF jstoone@drk.sh
@jstoone
jstoone / gtm-youtube-track.js
Created Oct 14, 2016
Tagmanager Youtube tracker
View gtm-youtube-track.js
<script>
//enable the JavaScript API for an embedded player
for (var e = document.getElementsByTagName("iframe"), x = e.length; x--;)
if (/youtube.com\/embed/.test(e[x].src))
if(e[x].src.indexOf('enablejsapi=') === -1)
e[x].src += (e[x].src.indexOf('?') ===-1 ? '?':'&') + 'enablejsapi=1';
var gtmYTListeners = []; // support multiple players on the same page
// attach our YT listener once the API is loaded
function onYouTubeIframeAPIReady() {
@jstoone
jstoone / linedUp.php
Last active Jul 12, 2016
Slug stop words, in different flavors
View linedUp.php
<?php
$linedUp = $slugStopWords = [
'a',
'about',
'above',
'after',
'again',
'against',
'all',
View brew-me-mac.sh
##
# HOMEBREW
##
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Brew: install cli apps
brew install git node wget ag ack mplayer mpv vim
# Brew: get/tap brew cask
brew cask
# Brew: install desktop apps
brew cask install vlc firefox spotify iterm2 \ # everyday
@jstoone
jstoone / app.js
Created Jun 20, 2016
Spark + vue-router + vueify = awesome
View app.js
require('./components/bootstrap');
import SparkWrapper from './lib/spark-wrapper';
import VueRouter from 'vue-router';
import HomeView from './pages/home/index.vue';
Vue.use(VueRouter);
const Router = new VueRouter();
Router.map({
@jstoone
jstoone / editor.vue
Created Jun 15, 2016
Quick & Dirty: Vue.js (vueify) wrapper for Ace editor
View editor.vue
<template>
<!-- Languages -->
<div class="Editor__Languages">
<button @click.prevent="changeHighlight"
data-style="ace/mode/markdown"
class="btn btn-xs btn-primary">.md</button>
<button @click.prevent="changeHighlight"
data-style="ace/mode/php"
class="btn btn-xs">.php</button>
<button @click.prevent="changeHighlight"
View .babelrc
{
"presets": ["es2015"],
"plugins": ["transform-runtime"]
}