This file contains 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
package main | |
import ( | |
"context" | |
"fmt" | |
"io" | |
"log" | |
"strconv" | |
octrace "go.opencensus.io/trace" |
This file contains 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 "net/http" | |
require "uri" | |
uri = URI.parse("http://haml2erb.herokuapp.com/api.json") | |
files = Dir.glob("app/views/**/*.html.haml") | |
files.each do |file| | |
haml = File.read(file) | |
response = Net::HTTP.post_form(uri, {"haml" => haml}) |
This file contains 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 'irb/workspace' | |
module IRB | |
class WorkSpace | |
alias evaluate__orig evaluate | |
def evaluate(ctx, stmts, file=__FILE__, line=__LINE__) | |
result = evaluate__orig(ctx,stmts,file,line) |