Skip to content

Instantly share code, notes, and snippets.

View carlinmack's full-sized avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿

Carlin MacKenzie carlinmack

🏴󠁧󠁢󠁳󠁣󠁴󠁿
View GitHub Profile
@carlinmack
carlinmack / python.json
Last active June 25, 2023 12:35
Python snippets for vs code
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
6042825
6628208
3228863
4111116
7718173
4207244
1008230
6800166
3750528
3962008
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
dois
10.1001/jama.2020.1097
10.1001/jama.2020.15398
10.1001/jamapediatrics.2018.1960
10.1002/(SICI)1099-1360(199905)8
10.1002/1438-390X.12050
10.1002/1438-390x.12050
10.1002/16-0110.1
10.1002/2013GB004664
10.1002/2013GL057623
@carlinmack
carlinmack / dois.py
Last active June 8, 2022 12:32
IPCC AR6 2022 QIDs
"""
If query.sparql and the input data file are downloaded,
the script can simply be called as:
python iq-to-qid.py
"""
import argparse
import os
import time
# place this file in folder with pngs or jpgs
# run with python warmingstripes.py
# will work with non warming stripes images
# but will be an image with columns of the top row of pixels stretched down
from PIL import Image
import drawSvg as draw
import os
files = [i for i in os.listdir() if i.endswith("png") or i.endswith("jpg")]

AutoHotkey QuickStart Guide

Setup

You wanna download the current version of autohotkey, I'd recommend V2 but I have no idea what the syntax is. After downloading I think it will create a script for you called something like "AutoHotkey.ahk". You can place this anywhere but I put it in my Documents. Once you've found a place for it you will want to copy it. Then go to C:\Users\%UserName%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. Finally right click and select "Paste shortcut". This will ensure that AutoHotkey runs on start up.

Editing your user script

To make any adjustments, which will be many at the start, find the AHK icon in the notification area. Right click and select "Edit This Script". This will open notepad for you to make changes in. Once you are done save and then right click the AHK icon and select "Reload This Script"

@carlinmack
carlinmack / cloudSettings
Last active June 26, 2020 13:11
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-14T21:26:38.490Z","extensionVersion":"v3.4.3"}
keycode 0x0a = 1 at
keycode 0x0b = 2 numbersign
keycode 0x0c = 3 sterling
keycode 0x0d = 4 dollar EuroSign EuroSign
keycode 0x0e = 5 percent
keycode 0x0f = 6 asciicircum
keycode 0x10 = 7 ampersand
keycode 0x11 = 8 asterisk
keycode 0x12 = 9 parenleft
keycode 0x13 = 0 parenright
# Change prefix bind
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Enable mouse mode (tmux 2.1 and above)
" show the filename in the window titlebar
set title
" set encoding
set encoding=utf-8
" line numbers
set number
highlight LineNr ctermfg=DarkGrey