I hereby claim:
- I am davidahopp on github.
- I am davidahopp (https://keybase.io/davidahopp) on keybase.
- I have a public key ASADQSnQ-eBFU49xGoNE9i373tX7rdH7slCea8mcnH97TAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
DB_NAME="$USER" | |
DBMS_SHELL="psql" | |
DBMS_USER="postgres" | |
#if [ "$1" = '--help' ]; then | |
if [[ ( "$1" == '--help' ) || ( "$1" == '-h' ) ]]; then | |
echo "usage: $0 [DB_NAME] [DBMS_SHELL]" | |
echo "default DB_NAME is your username" |
class ApplicationController < ActionController::Base | |
before_filter :check_permissions | |
def check_permissions | |
redirect_to root_path unless current_user.beta_approved | |
end | |
end |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
if user.beta_approved | |
can :view, :site | |
end | |
end |
var _this = this; | |
chart_options = { | |
chart:{}, | |
plotOptions:{}, | |
series:{ | |
cursor: 'pointer', | |
point: { | |
events: { | |
click: function() { | |
// do your awesome magic here |