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
/* | |
These next two functions work together to lock down bbPress forums based on PMPro membership level. | |
Check that the current user has access to this forum. Be sure to update the $restricted_forums array based on your needs. | |
*/ | |
function pmpro_check_forum() | |
{ | |
global $current_user; | |
/* |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
# with the help of the sdoc gem, this will generate the sdocs for all | |
# of your most recent gems. | |
# Caution! This will take a long time to run if you have a lot of gems installed. | |
# set an absolute path to the directory you would like your docs generated. | |
docs_path = "/Users/sean/tmp/docs/" | |
gems_output = `gem list --local` | |
gem_list = gems_output.gsub(/^([^ ]+).*\)/, '\1').split(/\n/) | |
latest_gem_dirs = gems_output.gsub(/^([^ ]+) \(([0-9\.]+).*\)/, '\1-\2').split(/\n/) |