Skip to content

Instantly share code, notes, and snippets.

View davidwatkins73's full-sized avatar
🌍
Deleting

David Watkins davidwatkins73

🌍
Deleting
View GitHub Profile
@davidwatkins73
davidwatkins73 / narrow_widen.js
Last active April 2, 2020 13:56
Useful bookmarklets
// ->|--|<- (Narrow)
javascript:w = document._w || 1100; w = w - 100; document.body.style.width = w + "px"; document._w = w;
// <-|--|-> (Widen)
javascript:w = document._w || 900; w = w + 100; document.body.style.width = w + "px"; document._w = w;
@davidwatkins73
davidwatkins73 / caps_to_ctrl.ahk
Created January 10, 2020 14:00
Remaps capslock to control (left ctrl) in AutoHotKey. Needed as thin client at work does not allow other mechanisms of key remapping
*$CapsLock::
Send {LControl down}
Sleep 300
Send {LControl up}
@davidwatkins73
davidwatkins73 / Liquibase-XML-inserts.xml.groovy
Last active September 29, 2022 14:50
Jetbrains Intellij / Datagrip: Data Extractor - allows export of row data into Liquibase compatible insert statements
/*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>
* OUT { append() }
* FORMATTER { format(row, col); formatValue(Object, col) }
* TRANSPOSED Boolean
* plus ALL_COLUMNS, TABLE, DIALECT
*
* where:
package org.davidwatkins73.rx.playpen;
import rx.Observable;
import java.util.ArrayList;
import java.util.List;
public class RxBatchDemo {
public static void main(String[] args) {