This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1:53:19 Information [jrpp-254] - [1 ms (1)] [/Users/yosem/workspace/suite101/custom_tags/ct_core/environment.cfc @ line: 5] - [environment] Setting environment | |
03/23 21:53:19 Information [jrpp-254] - [2 ms (1)] [/Users/yosem/workspace/suite101/custom_tags/ct_core/environment.cfc @ line: 11] - [environment] SUITE101_BETA_14104_21282626 - Setting server language details | |
03/23 21:53:19 Information [jrpp-254] - [3 ms (1)] [/Users/yosem/workspace/suite101/custom_tags/ct_core/environment.cfc @ line: 21] - [environment] SUITE101_BETA_14104_21282626 - Setting server strings | |
03/23 21:53:19 Information [jrpp-254] - [7 ms (4)] [/Users/yosem/workspace/suite101/custom_tags/ct_core/environment.cfc @ line: 168] - [environment] SUITE101_BETA_14104_21282626 - Setting local paths | |
03/23 21:53:19 Information [jrpp-254] - [9 ms (2)] [/Users/yosem/workspace/suite101/custom_tags/ct_core/environment.cfc @ line: 181] - [environment] SUITE101_BETA_14104_21282626 - Setting writer acquisition page urls | |
03/23 21:53:19 Information [j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def should_require_authorization_of(*args, &action) | |
defaults = {:action => :manage, :object => nil, :not_authorized_status => 403}.merge(args.extract_options!) | |
options = defaults.merge(args.extract_options!) | |
user = Factory.build(:user) | |
user.stubs(:persisted?).returns(true) | |
controller.stubs(:current_user).returns(user) | |
authorize(options) | |
action.call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "POST create" do | |
it "should require authentication" do | |
should_require_authentication do | |
canvas = Factory.build(:canvas) | |
post :create, | |
:canvas => { | |
:name => canvas.name, | |
:mission => canvas.mission, | |
:image => canvas.image, | |
:open => canvas.open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec::Matchers.define :have_widget_elements_for do |widget| | |
match do |actual| | |
puts actual.to_yaml | |
@errors = {} | |
expected_elements = { | |
:widget => ".widget", | |
:content_type => ".#{widget.content_type}", | |
:body => ".body", | |
:title => ".title", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Your normal .bashrc code should go here | |
# adding RVM | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. | |
# Use current directory bin path first | |
export PATH=./bin/$PATH | |
#load bash bash colours and git completion for a pretty and efficient workflow | |
source ~/bash-colours.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function onInteraction(e) { | |
// Run the discount code here. | |
// Important - interaction events can happen multiple times with a given overlay so | |
// you'll want to ensure the discount is only applied once. | |
} | |
$(window).on('message', function(e) { | |
// Make sure the message is coming from Rooster | |
if (e.originalEvent.origin + '/' !== window.location.protocol + _GT_config.gt_host) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('pre > code').each(function(index) { | |
var _this = $(this); | |
var text = _this.text(); | |
lines = text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/); | |
indent = 0; | |
var firstCharFinder = /^\s*\S/i; | |
var leftTrimLength = 0; | |
var contentStarted = false; | |
adjusted_lines = $.map(lines, function(line, i) { | |
if(!contentStarted) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!TEX TS-program = xelatex | |
\documentclass[12pt]{scrartcl} | |
% The declaration of the document class: | |
% The second line here, i.e. | |
% \documentclass[12pt]{scrartcl} | |
% is a standard LaTeX document class declaration: | |
% we say what kind of document we are making in curly brackets, | |
% and specify any options in square brackets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mongoose: pings.ensureIndex({ timestamp: -1 }) { safe: undefined, background: true } | |
Mongoose: checkevents.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true } | |
Mongoose: checkhourlystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoose: checkdailystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoose: checkmonthlystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoose: checkyearlystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoose: taghourlystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoose: tagdailystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoose: tagmonthlystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true } | |
Mongoos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- | |
# Doorman is yet another feature flipper. You can use Doorman to limit access | |
# of features on a global or per object scale to specific users or accounts. | |
# | |
# Doorman uses Rolify to store state and keeps the global list of features | |
# in Redis (or maybe in PG - depending on what's easier). | |
# | |
# :section Example Usage | |
# | |
# Setting up instructions |
OlderNewer