Skip to content

Instantly share code, notes, and snippets.

@WilCF
WilCF / gist:2284304bc00175d9c852
Created November 5, 2015 23:06
Add More Fund Setting
Cassio,
We are working on the copy for the new cost estimator/out of funds bypass setting.
What would you expect a setting with this description to do?
Name of setting: “Job continues to run when cost exceeds estimate”
Description: “When cost of job exceeds the previously allocated funds, debit additional amount from your account balance to allow the job to continue. Auto-payment must be turned on.”
Is this explicit enough about notifying you that your credit card will be debited? Any additional comments or critiques are welcome.
<div class="row-fluid">
<p><a target="_blank" href="{{url}}" id="" class="btn btn-primary">Click here to view the Property Tax Bill</a></p>
</div>
<div class="row-fluid">
<div class="span6">
<cml:radios label="Can you find the Discount Payment Amount?" name="hasdiscountamountdue" validates="required" aggregation="agg" gold="true">
<cml:radio label="Yes, the Discount Payment Amount is provided" value="Yes, amount"></cml:radio>
<a class="clicked validates-clicked" target="linkwindow" href="{{ir_link | remove:'http://' | prepend:'http://'}}">{{ir_link}}</a>
@WilCF
WilCF / gist:4676af633d4a2510abd0
Created January 21, 2016 01:02
CML Horizontal
/*Horizontal radio button questions for cml:radio in a cml:radios with class "horizontal" */
.radios.horizontal .cml_row {
float: left;
width: 20%;
}
In this case, you only need to set the cml:radios to class="horizontal"
<tr>
<th>Postal Code (Zip):</th>
<td>
<span class="street_address_color">
{% if postcode.size == 5 %}
{{postcode}}
{% else %}
{{postcode | prepend:'0'}}
{% endif %}
/* Well magic */
.well-white {
background-color: white;
}
.well-white p {
margin-bottom: 0px;
}
.center {
require(['jquery-noconflict'], function(jQuery) {
//Ensure MooTools is where it must be
Window.implement('$', function(el, nc){
return document.id(el, nc, this.document);
});
var $ = window.jQuery;
// a function to randomize cml elements on page
// one caveat: if there are other (non-cml) elements on the page, they will
// always float to the top. keeping non-cml elements between cml elements
739883331
739883332
739883334
739883335
739883338
739883339
739883340
739883341
739883342
739883343
@WilCF
WilCF / cml.xml
Created January 31, 2017 19:14
Link Widget (Convert Comma - Delimited URLs into distinct buttons)
<div class="url-list-wrapper-js">
<div class="hidden target_parent_urls-output-js">
{{urls}}
</div>
<div class="link-list-js">
</div>
</div>
@WilCF
WilCF / disable.txt
Created January 31, 2017 19:28
Disable all golds in a job
curl -H "Content-Type: application/json" -X PUT 'https://api.crowdflower.com/v1/jobs/JOB_ID/gold.json?key=YOUR_API_KEY' -d '{"reset": true}'