This file contains hidden or 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
// group cards into overlap groups | |
self.onmessage = function (event) { | |
const offset = 10 | |
const { cards, viewport, zoom } = event.data | |
let newCards = cards.filter(card => isCardInViewport(card, viewport, zoom)) | |
newCards = newCards.map(card => { | |
return { | |
id: card.id, | |
name: card.name, |
This file contains hidden or 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
ᵔᴥᵔ |
This file contains hidden or 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 Kinopio Markdown | |
// @namespace https://kinopio.club/kinopio-markdown-userscript-Q9qnmvXEPaagLx5Ufytlx | |
// @version 0.1 | |
// @description convert text in cards to markdown | |
// @author Pirijan (forked from dnrvs) | |
// @match https://kinopio.club/kinopio-markdown-userscript-Q9qnmvXEPaagLx5Ufytlx | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
ʕ●ᴥ●ʔノ*:・ |
This file contains hidden or 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
Puts on glasses: | |
(•_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) | |
Takes off glasses ("mother of god..."): | |
(⌐■_■) | |
( •_•)>⌐■-■ |
This file contains hidden or 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
︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿ | |
︵‿︵‿ poolside fm ︵‿︵‿︵‿︵‿︵‿ | |
︵‿︵‿︵‿︵‿︵‿︵‿ for iphone ‿︵‿ | |
︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿︵‿ | |
in the app store ⓝⓞⓦ 🏝Mobile phone http://cellular.poolside.fm |
This file contains hidden or 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
// edit search and paste me into your browser console | |
search = 'my cool search'; | |
// this will only work for the spaces you have cached | |
// i.e. you've opened the space on this device recently | |
spaces = Object.keys(localStorage); | |
spaces = spaces.filter(space => space.startsWith('space-')); | |
spaces = spaces.map(space => JSON.parse(localStorage[space])); | |
matchingSpaces = spaces.filter(space => { | |
if (!space.name) { return }; |
This file contains hidden or 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
moveZeros([1, 2, 0, 1, 0, 0, 3, 6]) | |
const moveZeroes = (numbers) => { | |
let zeroes = [] | |
numbers = numbers.filter(number => { | |
if (number === 0) { | |
zeroes.push(number) | |
} else { | |
return true | |
} |
This file contains hidden or 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
꒰◍ᐡᐤᐡ◍꒱ ␈␈␈␈␈␈␈␈ |
This file contains hidden or 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
// local storage cache interface for currentUser and spaces | |
import utils from '@/utils.js' | |
export default { | |
storeLocal (key, value) { | |
try { | |
window.localStorage[key] = JSON.stringify(value) | |
} catch (error) { | |
console.warn('storeLocal Could not save to localStorage') |