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'
},
/*
* 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.
*
// Place all the styles related to the Videos controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
input[type='text'] {
width: 50%;
font-size: 14px;
padding: 3px;
}