I hereby claim:
- I am stack on github.
- I am stack (https://keybase.io/stack) on keybase.
- I have a public key whose fingerprint is 21E9 80DD 2C0D 1421 F5C3 9859 D5D3 F4F8 C270 4B4E
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
def rotate_clockwise(direction) | |
case direction | |
when :n | |
:e | |
when :e | |
:s | |
when :s | |
:w |
Homebrew build logs for libyaml on macOS 10.12.1 | |
Build date: 2016-11-27 18:48:33 |
// | |
// UIView+SuperviewSequence.swift | |
// PhotoKeeper | |
// | |
// Created by Stephen Gerstacker on 2/18/16. | |
// Copyright © 2016 net.shortround. All rights reserved. | |
// | |
import UIKit |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'net/ping' | |
require 'time' | |
TEST_SITES = [ | |
"http://www.google.com", | |
"http://www.yahoo.com" | |
].freeze |
I hereby claim:
To claim this, I am signing this object:
<html> | |
<body> | |
<script type="text/javascript"> | |
document.write(navigator.userAgent); | |
</script> | |
</body> | |
</html> |
server.bind = "0.0.0.0" | |
server.port = 3000 | |
server.document-root = CWD | |
index-file.names = ( "index.php", "index.html", "index.htm", "default.htm" ) | |
server.modules = ( "mod_fastcgi" ) | |
## Start an FastCGI server for php (needs the php5-cgi package) | |
fastcgi.server += ( ".php" => |
class EmbeddedMailer < ActionMailer::Base | |
def embedded_mail(to, from, subject, html_message, text_message, files = {}, embeds = {}) | |
mail(:to => to, :from => from, :subject => subject) do |format| | |
format.text { render :text => text_message } | |
format.html { render :text => html_message } | |
end | |
# Embeds | |
embeds.each do |key, embed| |
class EmbeddedMailer < ActionMailer::Base | |
def embedded_mail(to, from, subject, html_message, text_message, files = {}, embeds = {}) | |
# Hack TMail to allow embeds | |
TMail::HeaderField::FNAME_TO_CLASS.delete 'content-id' | |
recipients to | |
from from | |
subject subject |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'dbus' | |
# Get the proper DBus session address | |
pid = nil | |
programs = %w( gnome-session ) | |
programs.each do |program| | |
pid = `pidof -s #{program}` |