Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 19tfyfVETRxZncLgmKwMXrxf5qRnkjsjEj https://explorer.blockstack.org/address/19tfyfVETRxZncLgmKwMXrxf5qRnkjsjEj
@istan
istan / gist:4568032
Last active December 11, 2015 07:39
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
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
<!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." />
# 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
class Regularship < ActiveRecord::Base
...
belongs_to :user
belongs_to :regulee, :class_name => "User", :counter_cache => true
...
end
class User < ActiveRecord::Base
Ext.define "onthebar.controller.StartViewController",
extend: "Deft.mvc.ViewController"
...
control:
signUpNavButton: #gets selector by id automatically
listeners:
tap: 'onSignUpNavButton'
Ext.define("onthebar.view.Main", {
extend: 'Ext.Container',
requires: ['Ext.TitleBar','onthebar.view.SignIn'],
id: 'viewport',
config: {
title: 'onthebar',
layout: {
type: 'card'
},
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}
/*
* 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.
*