- File > Properties > Editors > SQL Editor > SQL Processing
- Uncheck "Blank line is statement delimeter" in Delimeters section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import urllib.request | |
import xml.etree.ElementTree as ET | |
import time, random, math | |
import smtplib | |
from email.message import EmailMessage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unix/Max | |
ping www.google.com -i 1 | while read pong; do echo "$(date +%Y-%m-%d_%H:%M:%S): $pong"; done | grep --line-buffered timeout | |
# Windows (through cygwin or Git Bash) | |
ping www.google.com -n 500000 | while read pong; do echo "$(date +%Y-%m-%d_%H:%M:%S): $pong"; done | grep --line-buffered timed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import BOE_SQLAccess as boesql | |
sqlEngine = boesql.createSQLAlchemyEngine() # or equivalent SQLEngine object | |
tableName = 'petrinex_ab_well_licence' | |
pk = 'Licence Number' # target column to check for duplicates as the primary key | |
df_in = pd.read_sql(tableName, con=sqlEngine) | |
df = df_in.copy() # make a copy for safety, because downloads can be expensive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Table.AddColumn(#"Changed Type", "SQL", each "INSERT INTO TableName (" & Text.Combine(Table.ColumnNames(#"Changed Type"), ", ") & ") VALUES (" & Text.Combine(List.Transform(Record.FieldValues(_), each "'" & Text.From(_) & "'") , ", ") & ")") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit ' require strict variable 'dim' statements to avoid typos | |
Public Sub LookupClosestLatLong() | |
' Runs a procedure that prompts the user a few times, and takes them to the row of a pipe tally closest to some input coords. | |
' @since 2021-04-15 | |
' Note to self: Range.Cells(row number, col number) is 0-index. Cells(2,1) = B3. Good luck. | |
Dim LatColNum As Long | |
Dim LonColNum As Long |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Random Color = | |
VAR minColorVal = 128 | |
VAR cR = | |
RANDBETWEEN ( minColorVal, 255 ) | |
VAR cG = | |
RANDBETWEEN ( minColorVal, 255 ) | |
VAR cB = | |
RANDBETWEEN ( minColorVal, 255 ) | |
VAR RedP0 = |
This guide details how to setup copyq on Ubuntu/Debian systems to behave at least as well as Windows+V on Windows.
- Install with
sudo apt update && sudo apt install copyq
. - Launch copyq from the start menu or with
copyq
. - Go File > Settings > Check "Autostart".
- Go File > Commands/Global Shortcuts > Add > Show/hide main window > Ok > Click the plus button next to "Global Shortcut" > Press Windows+V (aka Super+V).
- In Spotify, it doesn't cache enough music. Intermitent network outages (<15 seconds) are noticable with pauses in the music.
- Sometimes randomly plays on other households' devices. The number of times I've wanted it to play on another household's device is 0.
- Not on my IP subnet? Don't control that device!
OlderNewer