Skip to content

Instantly share code, notes, and snippets.

View gist:ad37f1aac02f40e7fe8a1fec789a6d3f
Verifying my Blockstack ID is secured with the address 19tfyfVETRxZncLgmKwMXrxf5qRnkjsjEj https://explorer.blockstack.org/address/19tfyfVETRxZncLgmKwMXrxf5qRnkjsjEj
View gist:4568032
def get_disqus_sso
data = {
:id => self.id,
:username => self.email,
:email => self.email
}
message = Base64.strict_encode64 data.to_json
timestamp = Time.now.to_i
pub_key = DISQUS_PUBLIC_KEY
View gist:3252196
2012-08-03T22:31:52+00:00 heroku[router]: GET getonthebar.com/users/196 dyno=web.1 queue=0 wait=0ms service=222ms status=302 bytes=97
2012-08-03T22:31:52+00:00 app[web.1]: Rendered users/show.html.erb within layouts/application (64.9ms)
2012-08-03T22:31:52+00:00 app[web.1]: Redirected to http://getonthebar.com/404.html
2012-08-03T22:31:52+00:00 app[web.1]: Completed in 203ms
View gist:3248428
<!DOCTYPE html>
<html>
<head>
<title>onthebar - Corey Bunnewith</title>
<meta name="keywords" content="Corey Bunnewith, bartenders, craft cocktails, cocktails, cocktail bars, nightlife" />
<meta name="Description" content="The app for bartenders and their regulars." />
View gist:3124627
# shuts down all taps globally for specified time...
tapped: false
mainLaunch: ->
Ext.Viewport.element.on 'tap', (event) =>
if onthebar.app.tapped
console.log 'busy! come back later!'
event.stopEvent()
return
View gist:3077218
class Regularship < ActiveRecord::Base
...
belongs_to :user
belongs_to :regulee, :class_name => "User", :counter_cache => true
...
end
class User < ActiveRecord::Base
View gist:2875457
Ext.define "onthebar.controller.StartViewController",
extend: "Deft.mvc.ViewController"
...
control:
signUpNavButton: #gets selector by id automatically
listeners:
tap: 'onSignUpNavButton'
View gist:2869835
Ext.define("onthebar.view.Main", {
extend: 'Ext.Container',
requires: ['Ext.TitleBar','onthebar.view.SignIn'],
id: 'viewport',
config: {
title: 'onthebar',
layout: {
type: 'card'
},
View gist:1946511
ul.hmenu{list-style:none;margin:0 0 2em;padding:0}ul.hmenu li{display:inline}ul.hmenu li a{text-decoration:none}#flash_notice,#flash_alert{padding:5px 8px;margin:10px 0}#flash_notice{background-color:#CFC;border:solid 1px #6C6}#flash_alert{background-color:#FCC;border:solid 1px #C66}a.button{text-decoration:none;border:1px solid #999;background:#eee;color:#555;width:auto;padding:5px 8px 5px 8px;-webkit-border-radius:6px}a.button:hover{background:#f9f9f9;color:#777;border-color:#bbb}
View gist:1946503
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*