Skip to content

Instantly share code, notes, and snippets.

View creativecoder's full-sized avatar

Grant Kinney creativecoder

  • Madison, Wisconsin, USA
View GitHub Profile
<template lang="pug">
ul.pagination
li.item: a.link.first(@click.prevent="$emit('first-page')") First
li.item: a.link.prev(@click.prevent="$emit('prev-page')") Prev
li.item(v-for="i in pageTotal")
a.link.num(
@click.prevent="$emit('set-current-page', i)",
:class="i == currentPage ? '-current' : ''"
) {{i}}
li.item: a.link.next(@click.prevent="$emit('next-page')") Next
@developit
developit / unistore.js
Last active September 8, 2020 15:13
Update: the newer & better version of this is published: https://github.com/developit/unistore
import { h, Component } from 'preact';
/** Creates a new store, which is a tiny evented state container.
* @example
* let store = createStore();
* store.subscribe( state => console.log(state) );
* store.setState({ a: 'b' }); // logs { a: 'b' }
* store.setState({ c: 'd' }); // logs { c: 'd' }
*/
@FCLC
FCLC / PopOS_amdgpu.md
Last active April 17, 2026 13:14
Installing amdgpu-pro on popOS to enable OpenCL, ROCm and HIP

currently out of date as of September 2022, needs a fresh update

TLDR; edit the amdgpu-install script to add pop as supported debian distribution, comment out check for linux-modules-extra-[versions] since they're provided by linux-modules [per Jeremy Solle of System_76], then run with --no-dkms

3 EDIT: 4 things need to be done.

Problem 1) Pop!_OS not valid install target "Unsupported OS: /etc/os-release ID 'pop'" The issue as of now is that amdgpu-install doesnt recognize pop as a valid installation candidate. Solution is to add pop as a valid target in the amdgpu-install script.