This file contains hidden or 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
## | |
#@api public | |
#@!attribute allow_accept | |
# @return [Boolean] allow the proposal to be accepted | |
#@!attribute allow_decline | |
# @return [Boolean] allow the proposal to be declined | |
#@!attribute allow_downloads | |
# @return [Boolean] allow the pdf of this proposal to be downloaded | |
#@!attribute archived | |
# @return [Boolean] the state of archival |
This file contains hidden or 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
=begin | |
@api public | |
@!attribute allow_accept | |
@return [Boolean] allow the proposal to be accepted | |
@!attribute allow_decline | |
@return [Boolean] allow the proposal to be declined | |
@!attribute allow_downloads | |
@return [Boolean] allow the pdf of this proposal to be downloaded | |
@!attribute archived | |
@return [Boolean] the state of archival |
This file contains hidden or 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
=begin | |
@api public | |
@api public | |
@!attribute account_id [r] | |
@return [Integer] the id of the {Account} this {Proposal} is tied to. Can't be changed. | |
@api public | |
@!attribute allow_accept | |
@return [Boolean] allow the proposal to be accepted | |
@api public |
This file contains hidden or 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
# start with being logged out of right signature or | |
# logged in as the user that we are going to allow TinderBox with | |
def set_up_right_signature_oauth | |
@subscription = Subscription.find(params[:id]) | |
@account = @subscription.account | |
# get the master/consumer/app credentials | |
cred = IntegrationsConfig["right_signature"] | |
# find / generate the client's / account's consumer key/secret pair |
This file contains hidden or 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
var submission_data = JSON.parse("<%=j(@submission_data[:data].to_json) %>") | |
var i, field_data, field; | |
for(i = 0; i < submission_data.length; i++){ | |
field_data = submission_data[i]; | |
// this takes care of inputs, cehckboxes, radios, and textareas | |
field = $j("[name*=field" + field_data.field + "]" ); | |
if (field.length == 1 && field.length != 0){ | |
if (field[0].nodeName == "INPUT"){ |
This file contains hidden or 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
Installing termios (0.9.4) | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/userhomedir/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb | |
checking for termios.h... yes | |
checking for unistd.h... yes | |
creating Makefile | |
make | |
compiling termios.c |
This file contains hidden or 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
#!/bin/bash | |
echo -e "\e[01;33mGraphics Card(s): \e[00m"; | |
lspci | grep VGA; | |
echo -e "\e[01;33mConnected Monitors: \e[00m"; | |
egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log; | |
echo -e "\e[01;33mCurrent Video Driver: \e[00m"; | |
lsmod | grep "kms\|drm"; |
This file contains hidden or 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
#!/bin/bash | |
# start spork server if it hasn't been started already | |
# this may need to be manually killed if plugins, or gems change | |
if ps ax | grep -v grep | grep -v grep | grep spork > /dev/null | |
then | |
echo "spork is already running..." | |
# simple formatting with color | |
# drb option specifies to use spork server | |
bundle exec rspec --format Fuubar --color spec --drb |
This file contains hidden or 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
/* | |
Modified from: | |
http://stackoverflow.com/questions/1280263/changing-the-interval-of-setinterval-while-its-running | |
*/ | |
function setRandomTimeout( callback ){ | |
var internalCallback = function(){ | |
return function() { | |
var time = randomIntervalDelay(); | |
window.setTimeout( internalCallback, time ); | |
callback(); |
This file contains hidden or 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
/* | |
Builds a set of actions that are specific to each document type | |
= require_self | |
= require_tree ./models | |
*/ | |
window.TB = window.TB || {}; | |
TB.Object = jQuery.subclass(); | |
$.extend(TB.Object, { | |
/* static */ |
OlderNewer