Skip to content

Instantly share code, notes, and snippets.

📡
E.T. Phone Home

Parker Moore parkr

📡
E.T. Phone Home
Block or report user

Report or block parkr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@parkr
parkr / # bazel - 2017-11-11_19-35-51.txt
Created Nov 12, 2017
bazel on macOS 10.13.1 - Homebrew build logs
View # bazel - 2017-11-11_19-35-51.txt
Homebrew build logs for bazel on macOS 10.13.1
Build date: 2017-11-11 19:35:51
View jekyll_6364.rb
# This is a possible alternate solution to Jekyll #6364.
# All of these procs are translations of methods from Jekyll::Filters.
# Only item_property has been modified.
require "liquid"
input = { "government" => ["one post", "two post"], "tech" => ["three post"], "lol" => [1,2,3] }
as_liquid = -> (item) {
case item
@parkr
parkr / # hub - 2017-02-16_18-34-35.txt
Created Feb 16, 2017
hub on macOS 10.12.3 - Homebrew build logs
View # hub - 2017-02-16_18-34-35.txt
Homebrew build logs for hub on macOS 10.12.3
Build date: 2017-02-16 18:34:35
View which_date_comparison_is_faster.rb
require 'benchmark/ips'
def alter(obj)
return obj if obj.respond_to?(:strftime)
obj.downcase! if obj.is_a?(String)
case obj
when 'now'.freeze, 'today'.freeze
Time.now
@parkr
parkr / in-your-console.js
Last active Sep 30, 2019
delete your tweets and un-retweet tweets
View in-your-console.js
// go to https://twitter.com/your-username, and enter the following into the developer console:
for(var i = 1; i < 500; i++){ // just do it a bunch
// Un retweet
document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click();
document.getElementsByClassName("js-close")[0].click();
// Delete tweets
document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click();
document.getElementsByClassName("delete-action")[0].click()
}
View prosody_errors.log
**************************
Prosody was unable to find luaexpat
This package can be obtained in the following ways:
luarocks: luarocks install luaexpat
Debian/Ubuntu: sudo apt-get install liblua5.1-expat0
Source: http://www.keplerproject.org/luaexpat/
luaexpat is required for Prosody to run, so we will now exit.
View processing.log
/usr/local/lib/python2.7/site-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/usr/local/lib/python2.7/site-packages/numpy/core/_methods.py:67: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CG
View bash-has-closures?.sh
#!/usr/bin/env bash
DEFINITION_PATH="2.1.1-github"
RUBY_BUILD_DEFINITIONS="$HOME/code/rbenv-custom-definitions/support"
RUBY_BUILD_DEFINITIONS="/usr/local/share/ruby-build:${RUBY_BUILD_DEFINITIONS}"
echo "$RUBY_BUILD_DEFINITIONS" | tr ":" "\n" | sed '/^$/d' | while read DEFINITION_DIRECTORY; do
echo "Testing ${DEFINITION_DIRECTORY}/${DEFINITION_PATH}"
if [ -e "${DEFINITION_DIRECTORY}/${DEFINITION_PATH}" ]; then
echo "It worked!"
View test.md

Test

This is a test gist.

View 2013.html
---
layout: yearly
year: 2013
---
You can’t perform that action at this time.