Skip to content

Instantly share code, notes, and snippets.

View repentsinner's full-sized avatar

ritchie repentsinner

  • Free
  • West Coast
View GitHub Profile
@repentsinner
repentsinner / main.dart
Created June 8, 2022 18:17
Dart enhanced enum parser
import 'dart:convert';
enum ApiParam {
foo('FOO_KEY'),
bar('BAR_INFO'),
baz('BAZ_THING'),
;
final String param;
const ApiParam(this.param);
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": { "theme": "even" },
"basics": {
"name": "Ritchie Argue",
"label": "Virtual Production Display Specialist",
"image": "",
"email": "ritchie@doequalsglory.com",
"phone": "+1 512 394 4569",
"url": "",
@repentsinner
repentsinner / earplugs against algorithms
Last active August 10, 2022 17:18
merge mr. plywood local filters
! Title: repentsinner's earplugs for algorithms
! Description: Earplugs against algorithmic recommendation engines -
! clean excessive recommendations from social media. Wish
! these worked in the respective apps as well
! Expires: 4 days
! Licence:
! Homepage:
!
! GitHub issues:
! GitHub pull requests:
@repentsinner
repentsinner / main.dart
Created August 29, 2019 19:21
Flutter Slider/RangeSlider test
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
@repentsinner
repentsinner / set_up_python_dev_env.sh
Last active April 30, 2019 20:23 — forked from MADindustries/set_up_python_dev_env_macos
Set up a python development environment (macOS)
#!/bin/sh
# Install Homebrew (macOS package manager)
# consider using spack (https://spack.io/) when it better supports fish
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
# Install fish (A better shell)
curl -Lo ~/Downloads/fish-3.0.2.pkg https://github.com/fish-shell/fish-shell/releases/download/3.0.2/fish-3.0.2.pkg
sudo installer -pkg ~/Downloads/fish-3.0.2.pkg -target /
@repentsinner
repentsinner / wf-ac-integrate.js
Last active May 21, 2023 15:31
Webflow ActiveCampaign Integration
// set an id of 'subscribe' on the form element in Webflow
// add an embedded object that contains hidden inputs with the same data
// that ActiveCampaign generates from their form builder
document.getElementById('subscribe').onsubmit = function (event) {
try {
// hide previous errors
this.closest('.w-form').querySelector('.w-form-fail').style.display = 'none';
// jsonp nastiness to account for an inability to configure CORS origins in activecampaign 😠
/* Unfortunate hack to address https://github.com/mitro-co/mitro/issues/15 */
/*eslint-env browser */
/*eslint no-console:0, no-undef:0 */
delete console.log; // unbreak the redirected log
var secrets = document.querySelectorAll("[data-secret-id]");
function removeSecret(i) {
"use strict";
if (i < secrets.length) {
var id = parseInt(secrets[i].attributes["data-secret-id"].value);
background.removeSecret(id,