I hereby claim:
- I am code-later on github.
- I am codelater (https://keybase.io/codelater) on keybase.
- I have a public key whose fingerprint is 558C 4BCB 769B 6C58 D0C8 99F2 D845 39FC 9C9B 31F1
To claim this, I am signing this object:
# Add this method the MyApp::Application class (in config/application.rb) | |
def load_console(sandbox=false) | |
super | |
project_specific_irbrc = File.join(Rails.root, ".irbrc") | |
puts "Loading project specific .irbrc ..." | |
load(project_specific_irbrc) if File.exists?(project_specific_irbrc) | |
end |
I hereby claim:
To claim this, I am signing this object:
--- | |
- hosts: all | |
become: True | |
gather_facts: False | |
pre_tasks: | |
- name: Install python for Ansible | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) | |
changed_when: False | |
- setup: # aka gather_facts |
This is a very rough script to export your octopress files to Ghost. You will still need to check your data but it will give you a head start. Feel free to fork and optimize the script for your purpose.
The following should be considered:
source/_posts
directory/var/www/ghost/content/images
#!/usr/bin/env ruby | |
require 'date' | |
require 'mustache' | |
require 'stringex' | |
require 'cgi' | |
export = File.open(ARGV[0]) | |
target_dir = ARGV[1] |
class Podcast | |
include Guacamole::Model | |
attribute :title, String | |
attribute :body, String | |
# Timestamp attributes are automatically added (created_at, updated_at) | |
end |
scheme: "PinkiePie" | |
author: "Dirk Breuer (http://tfcl.de)" | |
base00: "151515" | |
base01: "202020" | |
base02: "303030" | |
base03: "505050" | |
base04: "b0b0b0" | |
base05: "d0d0d0" | |
base06: "e0e0e0" | |
base07: "f5f5f5" |
Shoes.app width: 600, height: 600 do | |
@knopf = button("Start", left: 300, top: 300) do | |
@pinky = image "/Users/dbreuer/Desktop/pinkie.png", width: 120, left: 0 | |
@dash = image "/Users/dbreuer/Desktop/dash.png", width: 120, left: 400 | |
@knopf.hide | |
end | |
#@mein_kreis = oval(0, 100, 25, fill: red, stroke: pink) | |
#animate 60 do |
This is my color scheme definition to be used with @chriskempson base16 builder. It is based on the original base16 color set with some pink modifications. I use the resulting 256 colors variant.
class Gateway | |
attr_reader :connection | |
def initialize(connection = Application.config.default_connection) | |
@connection = connection | |
end | |
def get(params) | |
request(:get, params) | |
end |