This file contains hidden or 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 ruby | |
# riffing on a tune by Paul at po-ru.com | |
# 1. Using a bash shell, install rvm according to instructions. | |
# 2. Install this script in your path, say in ~/bin. | |
# 3. Make it executable. | |
# 4. Add the following alias to your .tcshrc: | |
# alias rvm 'eval `~/bin/rvm.rb \!*`' | |
# 5. Use and enjoy rvm in your tcsh | |
# Note that this script relies on a ruby already installed in the path. | |
# It shouldn't be too hard to enhance it to bootstrap itself using rvm. |
This file contains hidden or 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
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
- (NSString *) platform; |
This file contains hidden or 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
# Jekyll archive page generator with pagination. | |
# | |
# Based on the category generator from | |
# http://recursive-design.com/projects/jekyll-plugins/, | |
# which is copyright (c) 2010 Dave Perrett, | |
# http://recursive-design.com/ and is licensed under the MIT | |
# license (http://www.opensource.org/licenses/mit-license.php), and | |
# on the pagination code from Jekyll itself. | |
# | |
# This code is copyright (c) 2011 Benjamin Curtis, and is licensed |
This file contains hidden or 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
module Jekyll | |
class MathJaxBlockTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex; mode=display">' | |
end | |
end | |
class MathJaxInlineTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex">' | |
end |