brew install profanity
- The latest build available today via homebrew is 0.4.4 (which means no support for
/occupants
pane in rooms), and it does not support desktop notifications.
// target request: | |
// http://nominatim.openstreetmap.org/reverse?format=xml&lat=40.004&lon=-82.862&MaxResponse=1&zoom=17&accept-language=en-us&addressdetails=1 | |
var getMyData = (function() { | |
var lat = document.forms[0].lat.value; | |
var lng = document.forms[0].lon.value; | |
return {format:"xml",lat:lat,lng:lng,MaxResponse:1,zoom:17,"accept-language":"en-us",addressdetails:1}; | |
}) | |
var submitForm = function() { |
/* Hide forking and starring from activity feed */ | |
div.alert.fork, div.alert.watch_started { | |
display: none; | |
} |
- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller | |
{ | |
shouldReloadCollectionView = NO; | |
blockOperation = [NSBlockOperation new]; | |
} | |
- (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id<NSFetchedResultsSectionInfo>)sectionInfo | |
atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type | |
{ | |
__weak UICollectionView *collectionView = self.collectionView; |
# encoding: UTF-8 | |
class String | |
# Extend string to include transliterations to different orthographies | |
# from Latin character set or the reverse (`to_latin`) | |
# | |
# Supported Orthographies: | |
# Arabic, Cyrillic, Greek, Hangul, Hiragana, Katakana, Latin, Thai | |
# |
### | |
# Scheme code is translated to YARV byte code, then evaluated in the | |
# Ruby Virtual Machine | |
require 'rbconfig' | |
require 'dl' | |
require 'fiddle' | |
require 'strscan' | |
class RubyVM |
# A script to generate a zsh compdef file from Cocoadex keyword names | |
# Change the `TARGET` if you store zsh completion files somewhere other | |
# than `~/.zsh/completion` | |
# | |
# Reference: | |
# - Writing own completion functions : http://askql.wordpress.com/2011/01/11/zsh-writing-own-completion/ | |
require 'rubygems' | |
require 'cocoadex' |
#!/usr/bin/env sh | |
# | |
# cocoadex_completion.sh | |
# | |
# Bash completion for Cocoa classes | |
# Install by saving this file and adding the following to your .bash_profile: | |
# | |
# complete -C /path/to/cocoadex_completion.sh -o default cocoadex | |
/usr/bin/env ruby <<-EORUBY |
# from https://github.com/kattrali/redcar-code-package-view/blob/master/lib/code_package_view.rb#L43 | |
def self.package_directory(adapter,base_path,path,nodes=[],path_name=File.basename(path)) | |
has_excluded_dirs = false | |
has_files = false | |
Dir["#{path.to_s}/*/"].map do |a| | |
unless File.basename(a) =~ /^\./ # exclude hidden dirs from being packaged | |
excluded = false | |
Preferences.excluded_patterns.each do |ex| | |
if a =~ /#{ex}/ and not excluded |