This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************ | |
* Utils | |
************************************************/ | |
const injectScript = url => | |
document.body.appendChild(document.createElement('script')).src = url | |
const querySelectorAllArray = selector => | |
[...document.querySelectorAll(selector)] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const R = require('ramda') | |
const recipie = { | |
ingredients: [{ | |
name: 'butter', | |
weight: 100 | |
}, { | |
name: 'salt', | |
weight: 25 | |
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
return [...$$('.card')] | |
.map(el => { | |
const code = $(':scope pre code', el) | |
.outerHTML | |
.replace(/\n/gmi, '<br>') | |
const description = [...$$(':scope > .description > :not(pre)', el)] | |
const summary = description | |
.splice(0, 1)[0] | |
.outerHTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* %AppData%\Local\Vivaldi\Application\<version>\resources\vivaldi\style */ | |
#tabs-container .toggle-trash, | |
.button-tabbar.newtab, | |
#main > div.toolbar-addressbar.toolbar > div.toolbar > button { | |
display: none !important; | |
} | |
#titlebar .application-icon { | |
opacity: .33; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.content-padding { | |
padding-top: 16px; | |
padding-bottom: 16px; | |
padding-left: 30px; | |
padding-right: 30px; | |
} | |
.button-group-height { | |
height: 72px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Vimify | |
// @namespace http://miniarray.com | |
// @version 0.1 | |
// @description Vimify textarea inputs | |
// @author You | |
// @match https://glitch.com/edit/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ;(function(options) { | |
command('reddit', 'reddit list', ([sub]) => { | |
if (!sub) sub = 'top' | |
else sub = `r/${sub}` | |
const subreddit = `https://www.reddit.com/${sub}.json?sort=top&t=day` | |
function reddit2list(json) { | |
return json.data.children.map(child => ({ | |
title: child.data.title.trim(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Headings: http://www.network-science.de/ascii/ascii.php?x=22&y=4&FONT=small&RICH=no&FORM=left&STRE=no&WIDT=80&TEXT=<YOUR_TEXT_HERE> | |
* Font: small | |
*/ | |
/* | |
const plugins = [{ | |
url: 'https://gist.githubusercontent.com/simonwjackson/56fff7941db54c4afb7ff286b74ec401/raw/reddit.sk.js', | |
name: 'reddit', | |
options: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content="Game Packery with left nav" name="description"> | |
<meta charset="utf-8"> | |
<meta content="width=device-width" name="viewport"> | |
<title> | |
JS Bin | |
</title> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.1/css/bulma.min.css" rel="stylesheet" type="text/css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<title>JavaScript SpatialNavigation Demo Page</title> | |
<script> | |
function isElementInViewport (el) { | |
//special bonus for those using jQuery |
NewerOlder