This is a test gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
feed_item.feedID, | |
feed.title as feedTitle, | |
feed_item.title, | |
feed_item.userRecommendedTime, | |
STRFTIME('%Y-%m-%d', CAST(feed_item.userRecommendedTime AS float),'unixepoch') AS userRecommendedTimeHuman, | |
feed.link as feedLink, | |
feed_item.url as episodeURL, | |
feed.artworkURL as feedArtworkURL | |
FROM OCFeedItem AS feed_item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for bazel on macOS 10.13.1 | |
Build date: 2017-11-11 19:35:51 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for hub on macOS 10.12.3 | |
Build date: 2017-02-16 18:34:35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************************** | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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!" |
NewerOlder