visit('/projects')
visit(post_comments_path(post))
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
;; Functions to work with frames | |
(provide 'ime-frame) | |
(defun screen-usable-height (&optional display) | |
"Return the usable height of the display. | |
Some window-systems have portions of the screen which Emacs | |
cannot address. This function should return the height of the | |
screen, minus anything which is not usable." |
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 | |
# Script to backup the Discourse postgres db and upload it to Amazon S3 | |
require 'rubygems' | |
require 'yaml' | |
require 'fog' | |
require 'time' | |
require 'date' | |
require 'fileutils' |
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
### | |
# Allowable | |
# | |
# A pattern for decomposing large/long conditional chains | |
# into readable, testable, and inspectable segments. | |
# Code coverage stats can help show you which conditions | |
# aren't getting test coverage, and printing/prying around | |
# the code can show you intermediary condition results. | |
# | |
# Effectively a block-syntax for the `or` operator: each `when?` |
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
a[href^="http:"] { | |
display:inline-block; | |
padding-right:14px; | |
background:transparent url(/Images/ExternalLink.gif) center right no-repeat; | |
} | |
a[href^="mailto:"] { | |
display:inline-block; | |
padding-left:20px; | |
line-height:18px; | |
background:transparent url(/Images/MailTo.gif) center left no-repeat; |
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
rscript.stack <- function() | |
{ | |
# Returns the stack of Rscript files. | |
# | |
# Returns: | |
# Stack of files. | |
Filter(Negate(is.null), lapply(sys.frames(), function(x) x$ofile)) | |
} |
NewerOlder