Skip to content

Instantly share code, notes, and snippets.

View arpieb's full-sized avatar

Robert Bates arpieb

View GitHub Profile
@arpieb
arpieb / gist:2e0d262e4099f3c28f4befdfe0958a15
Created December 18, 2023 23:20
Sample datafile for testing PashehNet
0
1
2
3
4
5
6
7
8
9
@arpieb
arpieb / main.py
Last active June 9, 2023 23:51
Python 3 CLI starter
import os
import logging
import argparse
import sys
from text2kg import text2kg, plot_kg
def setup_logging():
"""
@arpieb
arpieb / Dockerfile
Created February 16, 2023 20:42
Set up a Wine environment in a Docker container with Python 3.8 installed
################
# Attempt to run Windows scripts in a Docker container (for K8s deployment)
# Inspiration/material from:
# https://betterprogramming.pub/how-to-run-any-windows-cli-app-in-a-linux-docker-container-318cd49bdd25
################
FROM ubuntu:22.04
# Core system packages
RUN apt -y update
RUN apt -y install wget
@arpieb
arpieb / gdelt2-events.sql
Last active May 16, 2018 01:32
MariaDB CONNECT table schemas for GDELT v2 events and mentions CSV files
create table events (
GlobalEventID bigint unsigned ,
Day date date_format='YYYYMMDD' ,
MonthYear date date_format='YYYYMM' ,
Year date date_format='YYYY' ,
FractionDate double ,
Actor1Code char(15) ,
Actor1Name varchar(255) ,
Actor1CountryCode char(3) ,
Actor1KnownGroupCode char(3) ,
@arpieb
arpieb / GDELT_2.0_Data_Download.xml
Created May 8, 2018 21:17
Apache NiFi Template - GDELT 2.0 Data Download
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>98771fb2-0162-1000-65a1-1228bdb238d4</groupId>
<name>GDELT 2.0 Data Download</name>
<snippet>
<connections>
<id>99327f17-9239-34b6-0000-000000000000</id>
<parentGroupId>5eca6977-2945-3990-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>

Keybase proof

I hereby claim:

  • I am arpieb on github.
  • I am arpieb (https://keybase.io/arpieb) on keybase.
  • I have a public key ASDKYPcHf2bo0-TQareVbzMjxhUbcvvPvV5E6l3izG5qZQo

To claim this, I am signing this object:

@arpieb
arpieb / gist:c40f295ed5bb421134e2383e7334617f
Created May 25, 2017 17:23
$ docker run atbaker/wikipedia-question-generator "Immutable object"
$ docker run atbaker/wikipedia-question-generator "Immutable object"
Analyzing 'Immutable object'
[
{
"answer": "contrast",
"question": "This is in __________ to a mutable object (changeable object), which can be modified after it is created.",
"similar_words": [
"antagonism",
"antipode",
"antithesis",