I hereby claim:
- I am rubysolo on github.
- I am rubysolo (https://keybase.io/rubysolo) on keybase.
- I have a public key whose fingerprint is DAC3 8223 1D35 4CF9 65F4 DB74 4392 7357 9969 D06E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
unless defined?(Rails) | |
# minimum viable implementation of Rails | |
class Rails | |
class << self | |
def root | |
Pathname.new(File.expand_path('../..', __FILE__)) | |
end | |
def env | |
'test'.tap do |e| |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">How Simpleton Works</tspan> | |
</label> | |
<actor t="translate(76,42)" pose="-11,9|-4,117|-11,99|-13,87|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59"> |
package main | |
import "errors" | |
import "fmt" | |
import "io" | |
import "io/ioutil" | |
import "log" | |
import "os" | |
import "path/filepath" | |
import "strings" |
describe 'routes', -> | |
state = null | |
beforeEach -> | |
module 'templates' | |
module 'myApp', -> | |
inject (_$state_)-> state = _$state_ | |
it 'generates some url', -> |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# @trenpixster wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return | |
# ---------------------------------------------------------------------------- | |
# Use phusion/baseimage as base image. To make your builds reproducible, make | |
# sure you lock down to a specific version, not to `latest`! | |
# See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for |
namespace :assets do | |
task nondigest: :"assets:environment" do | |
logger = Logger.new($stderr) | |
asset_path = Rails.root.join('public', MyRailsApp::Application.config.assets.prefix.gsub(%r{^/}, '')) | |
manifest_path = Dir.glob(asset_path.join('manifest-*.json')).first | |
manifest_data = JSON.load(File.new(manifest_path)) | |
manifest_data["assets"].each do |logical_path, digested_path| | |
full_digested_path = asset_path.join(digested_path) |
# $Id: vim-keys.conf,v 1.1 2010/01/17 16:24:09 nicm Exp $ | |
# | |
# vim-keys.conf, v1.0 2010/01/15 | |
# | |
# By Daniel Thau. Public domain. | |
# | |
# This configuration file binds many vi- and vim-like bindings to the | |
# appropriate tmux key bindings. Note that for many key bindings there is no | |
# tmux analogue. | |
set -g prefix C-a |
segment = Segment::TwitterFollowers.create( | |
name: "Demo Twitter Followers Segment #{ timestamp }", | |
account: account, | |
client: client, | |
definition_data: "@nike\n" | |
) | |
VS |