Skip to content

Instantly share code, notes, and snippets.

View DonSchado's full-sized avatar
🐢
null

Marco DonSchado

🐢
null
View GitHub Profile
@shawndrost
shawndrost / application.rb
Created January 17, 2012 23:48 — forked from dgb/application.rb
Single file Rails application
# the new and improved one-file rails app -- now including
require "action_controller/railtie"
class Tester < Rails::Application
config.session_store :cookie_store, :key => '_rails_session'
config.secret_token = '095f674153982a9ce59914b561f4522a'
end
class UsersController < ActionController::Base
@netmute
netmute / README.md
Last active October 27, 2022 13:22
Game of Life

Game of Life

An implementation of Conway's Game of Life in 140 characters of Ruby.

Author

Created by Simon Ernst (@sier).

@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@afeld
afeld / gist:5704079
Last active November 27, 2023 15:43
Using Rails+Bower on Heroku
@bumi
bumi / travis-deploy.rb
Last active December 18, 2015 18:19
little script to be run after_success on Travis-CI to push to a configurable deploy branch. I'm using it to deploy successful builds with chef: if the master is green push the code to master_green. from there it get's deployed with chef
#!/usr/bin/env ruby
# HOWTO:
# copy this file to script/travis-deploy
# chmod +x script/travis-deploy
# add the following to your .travis.yml
# after_success:
# - "script/travis-deploy"
@fhemberger
fhemberger / README.md
Last active December 27, 2015 10:59
Get rid of content farms and W3Schools in search results.
@Erni
Erni / ES_MissingFilterWithNestedObjects
Last active March 15, 2017 12:09
Elasticsearch missing filter with nested objects
Elasticsearch missing filter with nested objects
@code-later
code-later / README.markdown
Created November 15, 2013 22:52
Export your Octopress files to Ghost

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:

  1. You need to execute the script in the source/_posts directory
  2. You need to manually copy all the images to /var/www/ghost/content/images
  3. Images with external URLs are not handled
  4. Blockquotes have their issues
  5. Lists are not exported correctly
@kangguru
kangguru / websocket.rb
Created December 12, 2013 21:34
Turn any application that uses STDOUT into a WebSocket server. Inspired by https://github.com/joewalnes/websocketd but written in ruby. $ ./websocket.rb start 'iostat -w 1 disk0'
#!/usr/bin/env ruby
require 'em-websocket'
require 'thor'
module Handler
def initialize(args)
@ws = args
end
def receive_data(data)
@jvns
jvns / interview-questions.md
Last active July 6, 2024 08:32
A list of questions you could ask while interviewing

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".