Skip to content

Instantly share code, notes, and snippets.

@ace-subido
ace-subido / gist:4029966
Created November 7, 2012 07:13
TwoFourSeven Hackathon Details

###Event Details

  • When: December 1, 2012. 8AM-11PM
  • Where: Smart Tower, Ayala Avenue Makati

###Wish-lists and Benchmarks

To successfully win the hackathon, we must have ideas on what they really want. Hackathons are a way for them to crowd-source innovation. So here's a few ideas and benchmarks that we can build upon once we know the theme for that day.

  1. Previous Hackathon champions
@ace-subido
ace-subido / ApiController.groovy
Last active December 26, 2015 21:49
Basic Mailgun WebHook ReceiverHere's a basic setup of how to validate an authentic POST to your endpoint from Mailgun Routes.
class ApiController {
protected def getConfig() {
getGrailsApplication().config
}
protected def jsonData(data = null, otherData = null) {
([data: data] + (otherData ?: [:])) as JSON
}
protected def renderUnacceptable() {
@ace-subido
ace-subido / routes.rb
Created March 27, 2014 09:37
Redirect to an external website when link could not be found in your Rails App
AelogicaSite::Application.routes.draw do
# Insert all your base here
get '/404', :to => redirect { |params, request|
domain = 'http://yey.com'
"http://#{domain}/#{request.env["REQUEST_PATH"]}"
}
end
@ace-subido
ace-subido / layout.scss
Last active August 29, 2015 13:57
Responsive Table
$phone-portrait: 320px;
@media screen and (max-width: $phone-portrait) {
table, thead, tbody, th, td, tr {
display: block;
width: 100%;
}
// Hide table headers
thead tr {
@ace-subido
ace-subido / tokenable.rb
Created May 2, 2014 15:15
Tokenable Ruby on Rails Models
module Tokenable
extend ActiveSupport::Concern
included do
before_create :generate_token
end
protected
def generate_token
@ace-subido
ace-subido / Vagrantfile
Last active August 29, 2015 14:00
Development Workflow: Basic Vagrantfile template
require "yaml"
CONFIG = YAML.load_file(File.expand_path("../config/vagrant.yml", __FILE__))
VM_BOX = "yourapp-box"
VM_BOX_URL = CONFIG["box_url"]
VM_IP_ADDRESS = CONFIG["ip"]
VM_MEMORY = CONFIG["memory"]
VM_CPU = CONFIG["cpus"]
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
@ace-subido
ace-subido / links.md
Last active August 29, 2015 14:02
UI/UX Interesting Links
@ace-subido
ace-subido / vertical-align.css
Created June 5, 2014 04:12
CSS Vertical Align
.parent-element {
-webkit-transform-style: preserve-3d;
}
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@ace-subido
ace-subido / enterprise-sales.md
Last active October 11, 2015 06:13
Contracts/Consulting Interesting References

Patio11 Enterprise Sales

Hiya guys! Patrick (patio11) here. You asked to get emails from me about making and selling software. Last time we talked about SaaS pricing, focusing on people paying in the tens to hundreds of dollars range. Today, we're going to talk about bigger fish.

A lot of folks have asked me about selling software to Big Freaking Enterprises. Big Freaking Enterprises are utterly price insensitive at price points you are contemplating (all amounts below $500 a month sound like rounding error), and having a few BFE clients grants you social proof to help sell other BFEs and smaller customers, as well. Nobody ever got fired for picking IBM, but if nobody at IBM got fired for picking you, then you must be good enough for Dr. Smith's office, right?

I was under a common engineer misapprehension that BFE sales requires playing golf, inviting clients to steak dinners, and having budgets beyond to reach of small businesses. This

@ace-subido
ace-subido / select2-flat.sass
Created July 20, 2014 23:53
Flat Style (SASS) for select2 v3.5
$gray: #AAA
=select2-background-active()
background-color: #fafafa
background-image: none
background: #fafafa
=select2-background-white()
background-color: #fff
background-image: none