Skip to content

Instantly share code, notes, and snippets.

@tadast
tadast / countries_codes_and_coordinates.csv
Last active November 15, 2024 22:02
Countries with their (ISO 3166-1) Alpha-2 code, Alpha-3 code, UN M49, average latitude and longitude coordinates
Country Alpha-2 code Alpha-3 code Numeric code Latitude (average) Longitude (average)
Afghanistan AF AFG 4 33 65
Åland Islands AX ALA 248 60.116667 19.9
Albania AL ALB 8 41 20
Algeria DZ DZA 12 28 3
American Samoa AS ASM 16 -14.3333 -170
Andorra AD AND 20 42.5 1.6
Angola AO AGO 24 -12.5 18.5
Anguilla AI AIA 660 18.25 -63.1667
Antarctica AQ ATA 10 -90 0
@BrainlabsDigital
BrainlabsDigital / Search Query Mining Tool.js
Last active October 30, 2024 22:18
Search Query Mining Tool script to calculate the performance of n-grams
/**
*
* Search Query Mining Tool
*
* This script calculates the contribution of each word or phrase found in the
* search query report and outputs a report into a Google Doc spreadsheet.
*
* Version: 2.2
* Updated 2015-09-17: replacing 'KeywordText' with 'Criteria'
* Updated 2016-10-11: replacing 'ConvertedClicks' with 'Conversions'
@dannguyen
dannguyen / shakespeare-ngrams-cli-ack.md
Last active May 30, 2023 16:04
How to tokenize and create n-grams in Shakespeare from the command-line

Creating Shakespearean n-grams with just the command-line and regexes

This is a quick example showing how to use regexes to find tri-grams in Shakespeare...well, 570,872 of them, anyway, if we do some basic filtering of non-dialogue.

Though tokenization and n-grams should typically be done using a proper natural language processing framework, it's possible to do in a jiffy from the command-line, using standard Unix tools and ack, the better-than-grep utility.

What are n-grams?

@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active November 14, 2024 08:31
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active November 14, 2024 13:52
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@EldonMcGuinness
EldonMcGuinness / block TLDs
Last active July 22, 2024 12:36
nextDNS Block TLDs
# This script is to be used on nextdns.io => Security => Block Top-Level Domains (TLDs) => Add a TLD
# Once the modal window is open, in the console you can run the below code to block all TLDs that are
# not in the validTLD array.
const delay = ms => new Promise(res => setTimeout(res, ms));
const blocker = async () => {
// List of TLDs that should not be blocked
let validTLD = [