Skip to content

Instantly share code, notes, and snippets.

Egor Homakov homakov

View GitHub Profile
View boot.js
var state={hi: prompt("Choose state")};
let body = `<html>
<head>
<script>
var state = {JSON.stringify(state)}
window.onload = function(){
document.write(state.hi)
@homakov
homakov / config.ru
Last active Sep 24, 2016
config.ru
View config.ru
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
#prevents DNS rebinding attacks
class DNSBinding
VALID_HOSTS = %w{localhost:9292 myshop.dev:3000 myshopprod.com}
def initialize(app)
@app = app
end
You can’t perform that action at this time.