Skip to content

Instantly share code, notes, and snippets.

View inem's full-sized avatar

Ivan Nemytchenko inem

View GitHub Profile
@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active June 17, 2026 21:07
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@solnic
solnic / rom_mapper_and_anima.rb
Last active August 29, 2015 13:59
ROM mapper with anima model
require 'rom'
require 'anima'
class User
include Anima.new(:id, :name, :tasks)
end
class Task
include Anima.new(:title)
end
@jodosha
jodosha / Gemfile
Last active December 9, 2020 15:09
Full stack Lotus application example
source 'https://rubygems.org'
gem 'rake'
gem 'lotus-router'
gem 'lotus-controller'
gem 'lotus-view'
group :test do
gem 'rspec'
gem 'capybara'
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active February 15, 2026 20:33
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@tkensiski
tkensiski / jserrorcollector.rb
Created March 20, 2014 02:27
Using JSErrorCollector w/ Ruby + Watir
require 'watir-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile.add_extension File.join(Rails.root, "/JSErrorCollector.xpi")
browser = Watir::Browser.new :firefox, :profile => profile
browser.goto 'www.google.com'
errors = browser.execute_script("return window.JSErrorCollector_errors.pump()")
@sharipov-ru
sharipov-ru / development.rb
Last active December 20, 2016 14:20 — forked from dhh/gist:2492118
config.middleware.use RoutesReloader
@chriseidhof
chriseidhof / deckset.py
Created January 31, 2014 11:45
Deckset Sublime Plugin
# Go to Tools > New Plugin, type deckset.py and press 'Save'
# Then paste in the code below.
#
# It currently only works when you have a single file open, but it could easily be improved (pull requests very welcome)
import sublime, sublime_plugin, subprocess, os
class GoToSlideCommand(sublime_plugin.TextCommand):
def run(self, edit):
pos = self.view.sel()[0].begin()
@Flamefork
Flamefork / React.addons.tagHelper.js
Last active January 4, 2016 00:08
React addon for easier React.DOM building without JSX
//
// React addon for easier React.DOM building without JSX
//
// Usage:
//
// render: function () {
// return React.addons.tagHelper(
// ['#main.container',
// ['h1', 'Hello!'],
// ['a.andClass.andAnother', { href: '/' }, 'Home']]
@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active July 22, 2026 16:19
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@pk11
pk11 / reactjs.js
Last active August 29, 2016 17:42
/** @jsx React.DOM */
/**
* Our component structure will look like the following:
* - WikiBox
* -- AutoCompleteBox
* --- AutoComplete
*/
// this component renders a single entity coming from wikipedia