Skip to content

Instantly share code, notes, and snippets.

View mvaneijgen's full-sized avatar

Mitchel van Eijgen mvaneijgen

View GitHub Profile
<div id="app">
<div>
<h1>{{ website }}</h1>
<input type="text" v-model="search_val">
<pre>{{results}}</pre>
</div>
</div>
<script type="text/javascript">
// Probably not necessary to use noConflict mode, but I did in fact need it
// This just replaces the jQuery ($) with (j)
to clickClassName2(theClassName, elementnum)
if application "Safari" is running then
try
tell application "Safari"
repeat with t in tabs of windows
if URL of t contains "youtube.com/watch" then
tell t
do JavaScript "document.getElementsByClassName('" & theClassName & "')[" & elementnum & "].click();"
end tell
end if
Process: BetterTouchTool [64149]
Path: /Applications/BetterTouchTool.app/Contents/MacOS/BetterTouchTool
Identifier: com.hegenberg.BetterTouchTool
Version: 3.219 (1396)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: BetterTouchTool [64149]
User ID: 501
Date/Time: 2020-01-24 13:23:25.268 +0100
@mvaneijgen
mvaneijgen / browser.txt
Created January 22, 2020 12:35 — forked from pankajparashar-zz/browser.txt
One line browser notepad
Version 1
---------
data:text/html, <html contenteditable>
Version 2
---------
data:text/html, <html><head><link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'><style type="text/css"> html { font-family: "Open Sans" } * { -webkit-transition: all linear 1s; }</style><script>window.onload=function(){var e=false;var t=0;setInterval(function(){if(!e){t=Math.round(Math.max(0,t-Math.max(t/3,1)))}var n=(255-t*2).toString(16);document.body.style.backgroundColor="#ff"+n+""+n},1e3);var n=null;document.onkeydown=function(){t=Math.min(128,t+2);e=true;clearTimeout(n);n=setTimeout(function(){e=false},1500)}}</script></head><body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
Version 3
---------
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/mitchelvaneijgen/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="cobalt2"
Process: BetterTouchTool [2804]
Path: /Applications/BetterTouchTool.app/Contents/MacOS/BetterTouchTool
Identifier: com.hegenberg.BetterTouchTool
Version: 3.219 (1396)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: BetterTouchTool [2804]
User ID: 501
Date/Time: 2020-01-13 09:02:46.686 +0100
Process: TAGame [88030]
Path: /Users/USER/Library/Application Support/Steam/*/RocketLeague.app/Contents/MacOS/TAGame
Identifier: com.Psyonix.rleague
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: steam_osx [26513]
Responsible: steam_osx [26513]
User ID: 501
Date/Time: 2020-01-09 17:14:30.932 +0100
<div <?php post_class('col-lg-4 col-md-6 alloy-item-berichten'); ?>>
<div class="alloy-cards">
<div class="inner">
<?php if (has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>">
<div class="alloy-image">
<?php $imgID = get_post_thumbnail_id($post->ID); ?>
<img src="<?= wp_get_attachment_image_src($imgID, 'alloy_img_1400', false, '')[0] ?>" class="alloy-image" sizes="(min-width: 768px) 350px, 100vw" srcset="
<?= wp_get_attachment_image_src($imgID, 'alloy_img_300', false, '')[0] ?> 300w,
<?= wp_get_attachment_image_src($imgID, 'alloy_img_600', false, '')[0] ?> 600w" alt="<?= get_post_meta($imgID, '_wp_attachment_image_alt', true); ?>" />
<div class="codepen" data-height="477" data-theme-id="dark" data-default-tab="result" data-user="mvaneijgen" data-slug-hash="LYEVQXp" data-prefill='{"title":"Key Combo Generator | QMK","description":"Each time I want to create a key combo in QMK, I get lost on how to build them exactly. The docs are fine, but I thought it could be simpler, so I&apos;ve build a simple web app that spits out the code you need based on your input.","tags":["vue","qmk"],"stylesheets":["https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/styles/tomorrow-night-blue.min.css"],"scripts":["https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/highlight.min.js"]}'>
<pre data-lang="html"><div id="app">
<h1>Key Combo Generator | QMK</h1>
<p>Looking for key codes? <a href="https://beta.docs.qmk.fm/features/keycodes_basic" target="_blank">Check the Basic
Keycodes docs</a></p>
<div class="alloy-user-input">
<div class="row" v-for="(item, index)
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3458 Extension host terminated unexpectedly. Code: 7 Signal: null
_onExtensionHostCrashed @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3458
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2596 Extension host terminated unexpectedly.
onDidNotificationChange @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2596
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3695 Extension Host
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3695 /Users/mitchelvaneijgen/.vscode/extensions/ritwickdey.live-sass-3.0.0/node_modules/sasslib/sass.sync.js:61var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){