Skip to content

Instantly share code, notes, and snippets.

{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "crkbd/r2g",
"keymap": "crkbd_r2g_crkbd_r2g_layout_split_3x6_3_home_mods",
"layout": "LAYOUT_split_3x6_3",
"layers": [
[
"KC_GRV",
@darrenparkinson
darrenparkinson / head.html
Last active February 21, 2024 10:31
Markdown Preview Enhanced
<!-- The content below will be included at the end of the <head> element. -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
// your code here
});
</script>
@darrenparkinson
darrenparkinson / .tmux.conf
Last active February 20, 2024 14:26
tmux config
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config
bind r source-file ~/.tmux.conf
@darrenparkinson
darrenparkinson / PixelIt.postman_collection.json
Created January 24, 2023 15:50
PixelIt Postman Collection
{
"info": {
"_postman_id": "08f0fa1e-48d6-4f39-bf07-d7579b3ceb24",
"name": "PixelIt",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "749469"
},
"item": [
{
"name": "0. Example - Fade Animation / Image / Text",
@darrenparkinson
darrenparkinson / download-artwork.go
Created October 6, 2020 14:03
Simple go file to download album artwork from spotify using CSV file of albums
package main
import (
"context"
"encoding/csv"
"fmt"
"io"
"log"
"os"
"strings"
// From here: https://github.com/edubey/browser-console-crawl/blob/master/single-story.js
console.save = function (data, filename) {
if (!data) {
console.error('Console.save: No data')
return;
}
if (!filename) filename = 'story.json'
if (typeof data === "object") {
// Place your settings in this file to overwrite the default settings
{
"editor.cursorStyle": "block-outline",
"editor.minimap.enabled": true,
"editor.fontLigatures": true,
"editor.renderWhitespace": "boundary",
"editor.renderIndentGuides": true,
"editor.renderLineHighlight": "gutter",
"editor.fontFamily": "Fira Code",
"workbench.iconTheme": "material-icon-theme",
@darrenparkinson
darrenparkinson / JabberDemoBot.js
Created January 18, 2017 14:43
Jabber BOT Demo using Node.js
'use strict'
const Client = require('node-xmpp-client');
const ltx = require('node-xmpp-core').ltx;
const bunyan = require('bunyan');
const log = bunyan.createLogger({ name: 'jabber-bot' });
const weather = require('./weather');
const tube = require('./tube');
@darrenparkinson
darrenparkinson / JabberDemoBot.py
Last active March 7, 2022 01:51
Jabber BOT Demo using Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import getpass
from optparse import OptionParser
import time
import sleekxmpp
@darrenparkinson
darrenparkinson / JabberReleaseNotes_Download.py
Created August 27, 2014 11:15
Download Jabber Release Notes listed in CSV file
import csv # for reading the csv file of files
import urllib # for downloading the file
with open('Jabber.csv', 'rb') as csvfile:
filereader = csv.reader(csvfile, delimiter=',')
for row in filereader:
original_filename = row[1].split('/')[-1]
new_filename = row[0] + ' ' + original_filename
print 'Retrieving : ' + new_filename
urllib.urlretrieve(row[1], new_filename )