- 200g Philadelphia light Cream Cheese
- 1 egg
- 230ml semi-skimmed milk
- 200g flour
- 8g bakery yeast
- 1/2 tea spoon salt
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
<p id="notice"><%= notice %></p> | |
<p> | |
<b>Name:</b> | |
<%= @post.name %> | |
</p> | |
<p> | |
<b>Title:</b> | |
<%= @post.title %> |
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
### Keybase proof | |
I hereby claim: | |
* I am toch on github. | |
* I am toch (https://keybase.io/toch) on keybase. | |
* I have a public key whose fingerprint is 85EF 645A 76A2 4150 55D5 109A AAE6 0C3E E979 07D7 | |
To claim this, I am signing this object: |
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
def trace_calls_on | |
scope = {} | |
trace = TracePoint.new(:call, :line) do |tp| | |
case tp.event | |
when :call then puts "#{tp.path}:#{tp.lineno} #{tp.defined_class}::#{tp.method_id} " \ | |
"called from #{scope[:path]}:#{scope[:lineno]} #{scope[:class]}::#{scope[:method_id]}" | |
when :line then scope = { | |
event: :line, | |
lineno: tp.lineno, | |
path: tp.path, |
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
source "https://rubygems.org" | |
gem "benchmark-lab" |
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
RewriteEngine On | |
ErrorDocument 503 /maintenance.html | |
RewriteCond %{REQUEST_URI} !.(css|gif|jpg|png)$ | |
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f | |
RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
RewriteRule ^.*$ - [L,R=503] |
Hi all,
It's the second year that me and Tyler are organizing the Ruby devroom at fosdem 2016. It focuses on Ruby internals and implementations. It's more about how Ruby is implemented than how it can be used. Last year we had great devs for MRI, Jruby, Rubinius, or Rubymotion. It would be wonderful to have a talk about mruby.
The CFP is open and ends on the 1st December.
Thanks for sharing it with other mruby contributors.
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
require 'benchmark/lab' | |
def method_names(number) | |
number.times.map do | |
10.times.inject("") { |e| e << ('a'..'z').to_a.sample} | |
end | |
end | |
class DefineMethod | |
def self.def_methods(_methods) |
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
APP_ROOT=ENV["APP_ROOT"] || Dir.pwd | |
# avoid redefining constants in mruby Rakefile | |
mruby_root=File.expand_path(ENV["MRUBY_ROOT"] || "#{APP_ROOT}/mruby") | |
mruby_config=File.expand_path(ENV["MRUBY_CONFIG"] || "build_config.rb") | |
ENV['MRUBY_ROOT'] = mruby_root | |
ENV['MRUBY_CONFIG'] = mruby_config | |
Rake::Task[:mruby].invoke unless Dir.exist?(mruby_root) | |
Dir.chdir(mruby_root) | |
load "#{mruby_root}/Rakefile" |
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
#!/bin/bash | |
# rubygem is required | |
# yard is required: gem install yard | |
# doc_to_dash is required: gem install doc_to_dash | |
GEM_NAME_PREFIX=$1 | |
DOCSET_DIR=$2 | |
TMP_DIR=$(mktemp -d) |