Skip to content

Instantly share code, notes, and snippets.

<cml:text class="" label="Keyword 1" name="synonym" validates="required minLength:3" default="keyword" aggregation="all">
<cml:gold regex="{seed}" flags="i" no_escape="true"></cml:gold>
</cml:text>
<video width="320" height="240" controls="">
<source src="{{url}}" type="video/mp4" />
</video>
<cml:radios label="JOB TITLE : {{raw}} CAN BE BEST PARAPHRASED AS " validates="required" gold="true" name="job_title__raw_can_be_best_paraphrased_as_" aggregation="agg">
<cml:radio label="CHOICE A: {{orginal_stdn}}" value="{{original_stdn}}"></cml:radio>
<cml:radio label="CHOICE B: {{new_stdn}}" value="{{new_stdn}}"></cml:radio>
<cml:radio label="both CHOICE A and CHOICE B are equally suitable" value="both_choice_a_and_choice_b_are_equally_suitable"></cml:radio>
<cml:radio label="neither CHOICE A nor CHOICE B are suitable paraphrases" value="neither_choice_a_nor_choice_b_are_suitable_paraphrases"></cml:radio>
<cml:radio label="I don't know" value="i_don_t_know"></cml:radio>
</cml:radios>
@WilCF
WilCF / gist:6fd081eebf3b310d2d5c
Created September 17, 2015 00:51
Script for lisamarie7
Hello! I am doing this for my friend & coworker Bryan - because he is really great. Here is my script!
Woman: Hello Bryan!
Man: Yes! Hello Bryan!
Woman: Did you know that we think you are great?
Man: It’s true!
Woman: And I want you to know!
Man: Yes!
Woman: That I think you are truly the best!
Man: What?
href="{{ir_link | remove:'http://' | prepend:'http://'}}">
@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:8345802
Created January 10, 2014 02:08
Liquid If Loop Example
{% if country == 'United Kingdom' %}
<div class="borderhash"><a target="_blank" href="http://www.linkedin.com/vsearch/p?firstName={{first_name}}&amp;lastName={{last_name}}&amp;postalCode={{zip}}&amp;openAdvancedForm=true&amp;companyScope=CP&amp;locationType=I&amp;countryCode=gb&amp;distance=100">2.Search UK's LinkedIn for {{first_name}} {{last_name}} 100 miles from their zip code</a></div><br />
{% elsif country == 'Australia' %}
<div class="borderhash"><a target="_blank" href="http://www.linkedin.com/vsearch/p?firstName={{first_name}}&amp;lastName={{last_name}}&amp;postalCode={{zip}}&amp;openAdvancedForm=true&amp;companyScope=CP&amp;locationType=I&amp;countryCode=au&amp;distance=100">2.Search Australia's LinkedIn for {{first_name}} {{last_name}} 100 miles from their zip code</a></div><br />
{% else %}
<div class="borderhash"><a target="_blank" href="http://www.linkedin.com/vsearch/p?firstName={{first_name}}&amp;lastName={{last_name}}&amp;p
I added an "aggregation=avg" to the cml:checkboxes element. I copied the job and ran it on the internal channel and submitted my judgments. The results came out in the hidden field "results_percentage", so at least that part works.
As for making test questions, I don't know how to do that, because as they said in their email, the choices are created dynamically in javascript. If he wants to completely re-do the way he's built the job, here's one idea I can think of.
For each unit in their csv, create new columns titled
"category_1_name"
"category_2_name"
"category_3_name"
"category_4_name"
Then split out the contents of the column "categories" into those columns. In the cml he would do
<cml:checkboxes label="" validates="required" instructions="" name="" class="" gold="true" aggregation="agg">