This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/usr/bin/env python | |
"""PSSSODLS generator. | |
Usage: | |
psssodls.py [options] [--] <size> | |
Options: | |
-h --help Show this screen. | |
--version Show version. |
Taken from TJ Holowaychuk: http://tjholowaychuk.com/post/26904939933/git-extras-introduction-screencast | |
Added to ~/.bash_aliases | |
alias gd="git diff | subl" | |
alias ga="git add" | |
alias gaa="git add --all" | |
alias gbd="git branch -D" | |
alias gst="git status" | |
alias gca="git commit -a -m" | |
alias gm="git merge --no-ff" |
#!/bin/sh | |
# | |
# Setup a work space called `work` with two windows | |
# first window has 3 panes. | |
# The first pane set at 65%, split horizontally, set to api root and running vim | |
# pane 2 is split at 25% and running redis-server | |
# pane 3 is set to api root and bash prompt. | |
# note: `api` aliased to `cd ~/path/to/work` | |
# | |
session="work" |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# get recent changes from wikipedia | |
library(rvest) | |
n_changes <- 5000 | |
recent_changes_url <- paste0("https://en.wikipedia.org/w/index.php?title=Special:RecentChanges&limit=", n_changes , "&days=1") | |
# connect to website | |
html <- read_html(recent_changes_url) |
#' Tests whether a raw httr response or character vector has a byte order mark (BOM) | |
#' | |
#' \href{https://en.wikipedia.org/wiki/Byte_order_mark}{What is a byte order mark?} | |
#' | |
#' @param resp \code{httr} response object or a character vector | |
#' @param encoding can be one of \code{UTF-8}, \code{UTF-16} or \code{UTF-16BE}. | |
#' Although a BOM could be used with UTF-32 and other encodings, such | |
#' encodings are rarely used for data transmission and the three supported | |
#' encodings are the most likely ones folks in R will be working with from | |
#' web APIs.\cr\cr |