Skip to content

Instantly share code, notes, and snippets.

View JKirchartz's full-sized avatar
🤖

Joel Kirchartz JKirchartz

🤖
View GitHub Profile
@JKirchartz
JKirchartz / README.md
Last active June 14, 2023 08:16
Sed Scripts to remove stop words or common words

How to use these files

in gnu-like systems

sed -f rm-en-wordlist-on-lines.sed corpus.list > output.file

should suffice, however on OSX, it may be required to run sed like this:

@JKirchartz
JKirchartz / rm-en-stopwords-anywhere.sed
Created August 23, 2017 20:31
sed command_files to remove english stopwords from lists
s|\<a\>||g
s|\<about\>||g
s|\<above\>||g
s|\<after\>||g
s|\<again\>||g
s|\<against\>||g
s|\<all\>||g
s|\<am\>||g
s|\<an\>||g
s|\<and\>||g
@JKirchartz
JKirchartz / cleaned.names.tracery
Last active August 15, 2017 19:01
Try to make a name generator with tracery/markov, this is probably a bad idea.
{
"origin": [
"A #a#",
"B #b#",
"C #c#",
"D #d#",
"E #e#",
"F #f#",
"G #g#",
"H #h#",
@JKirchartz
JKirchartz / README.md
Created August 8, 2017 21:40
Trying to hack jquery.easypin.js into ACF image fields (mostly unsuccessfully)

Try to add easypin to ACF's image fields

I've managed to add easypin to ACF's image fields, with a checkbox to enable or disable this functionality when adding a field to a field group; however once trying to edit these items on a post we lose the ability to save the image when the post is saved, and cannot update/ remove the image (via the pencil/x icons).

This is attempting to append the map coordinates to the value saved by ACF, I cannot figure out how to pass the json object of coordinates

Keybase proof

I hereby claim:

  • I am JKirchartz on github.
  • I am jkirchartz (https://keybase.io/jkirchartz) on keybase.
  • I have a public key whose fingerprint is 282E 4EF4 29AD FF47 FA53 AF52 6E57 B74A 4723 BDF0

To claim this, I am signing this object:

@JKirchartz
JKirchartz / tasks.md
Last active December 20, 2018 15:07
TODO list

TODO

JKirchartz.com

  • bootstrap redesign
  • Jekyll/SASS
  • Portfolio/Article linking Twitter-bots Projects
  • Portfolio/Article for WP builds
  • ACF Fluid Content (modules/json & article)
  • expand demos to include specific JSFiddle/Codepen projects
@JKirchartz
JKirchartz / _variables.scss
Last active February 28, 2017 18:12
a quick reference for Bootstrap SASS Variables (ala bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss )
$bootstrap-sass-asset-helper: false !default;
//
// Variables
// --------------------------------------------------
//== Colors
//
//## Gray and brand colors for use across Bootstrap.
@JKirchartz
JKirchartz / README.md
Last active February 17, 2017 17:10 — forked from manifestinteractive/sniff.txt
A friendly formatter for curl requests to help with debugging (with suggested mods)
  1. Make a file named sniff.txt and paste the contents of this gist into it
  2. Make an alias in your .bash_profile or .zshrc ( or whatever you use ) that looks like this ( make sure to source .bash_profile the file afterwards ):

alias sniff='curl -w "@/path/to/sniff.txt" -o /dev/null -O --remote-name --remote-header-name -s'

@JKirchartz
JKirchartz / goodreadsquotes.py
Created January 31, 2017 21:33
Download all quotes from GoodReads by author's quote URL, print in fortune format
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyleft (ↄ) 2016 jkirchartz <me@jkirchartz.com>
#
# Distributed under terms of the NPL (Necessary Public License) license.
"""
Download all quotes from GoodReads by author's quote URL, print in fortune format
@JKirchartz
JKirchartz / country
Created December 27, 2016 21:34
Gravity Forms' List of Countries (comma-delimited)
Afghanistan,
Albania,
Algeria,
American Samoa,
Andorra,
Angola,
Antigua and Barbuda,
Argentina,
Armenia,
Australia,