Skip to content

Instantly share code, notes, and snippets.

View menzenski's full-sized avatar

Matt Menzenski menzenski

View GitHub Profile
@menzenski
menzenski / dazn-manifest330-schema.json
Created November 20, 2023 14:32 — forked from nodefortytwo/dazn-manifest330-schema.json
DAZN Manifest Public 330 Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://dazn.com/manifest.schema.json",
"title": "dazn-manifest",
"type": "object",
"additionalProperties": false,
"description": "A YAML file which describes the contents of a code repository in a machine readable format.",
"properties": {
"dazn-manifest": {
"title": "version",
@menzenski
menzenski / log_rich_inspect_in_aws_glue.py
Last active August 17, 2022 14:44
Use rich's Inspect method on an object in an AWS Glue script
from rich.logging import RichHandler
from rich._inspect import Inspect
import logging
handler = RichHandler(rich_tracebacks=True, show_path=False, locals_max_length=None, locals_max_string=None, show_level=False, show_time=False)
logging.basicConfig(level="NOTSET", format="%(message)s", datefmt="[%X]", handlers=[handler])
# assumption - you are using AWS CloudWatch logs for AWS Glue
@menzenski
menzenski / init.el
Created August 16, 2021 16:37
Emacs init.el
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(menu-bar-mode -1)
(setq inihbit-startup-screen t)
(global-display-line-numbers-mode)
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("org" . "http://orgmode.org/elpa")
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2016 Matt Menzenski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

Keybase proof

I hereby claim:

  • I am menzenski on github.
  • I am menzenski (https://keybase.io/menzenski) on keybase.
  • I have a public key whose fingerprint is F234 E6EF 8850 46E2 2CF5 A17E D4BB 348E 8D5E 6908

To claim this, I am signing this object:

### set the working directory---you'll need to redefine this for your local system
setwd("~/Documents/School/Kansas/Coding/2015_02_12_RCorpusLingTools/JockersDataFiles/code")
#library("syuzhet")
library("syuzhet", lib.loc="/Library/Frameworks/R.framework/Versions/3.1/Resources/library")
### define our text file (here, it's in the current working directory)
### downloaded from http://www.gutenberg.org/cache/epub/2600/pg2600.txt
text.v <- scan("WarAndPeaceEnglish.txt", what="character",sep="\n")
@menzenski
menzenski / helloworld.asm
Created February 4, 2015 15:24
Hello World in Assembly language (x86-64 Unix-like operating systems, NASM syntax)
; MacOS X: /usr/local/bin/nasm -f macho64 *.s && ld -macosx_version_min 10.7 *.o
; Solaris/FreeBSD/DragonFly: nasm -f elf64 -D UNIX *.s && ld *.o
; NetBSD: nasm -f elf64 -D UNIX -D NetBSD *.s && ld *.o
; OpenBSD: nasm -f elf64 -D UNIX -D OpenBSD *.s && ld -static *.o
; OpenIndiana: nasm -f elf64 -D UNIX *.s && ld -m elf_x86_64 *.o
; Linux: nasm -f elf64 *.s && ld *.o
%ifdef NetBSD
section .note.netbsd.ident
dd 7,4,1
@menzenski
menzenski / helloworld.py
Created February 4, 2015 15:24
Hello World in Python
print "Hello World"
@menzenski
menzenski / rncfrequencyfinder.py
Created October 21, 2014 18:05
This Python script takes a list of words and returns the frequency with which each word occurs in the Russian National Corpus.
#! /usr/bin/env python
# -*- coding: utf-8 -*-
##########
## rncfrequencyfinder.py Version 1.0 (2014-10-20)
##
## Original author: Matthew Menzenski (menzenski@ku.edu)
##
## License: CC-BY-4.0 ( https://creativecommons.org/licenses/by/4.0/ )
##########
@menzenski
menzenski / RussianStopWords.txt
Created October 18, 2013 20:26
List of Russian stop words (original source: http://code.google.com/p/stop-words/ ).
а
е
и
ж
м
о
на
не
ни
об