Skip to content

Instantly share code, notes, and snippets.

a.clean {
color:#00a6e0;
text-decoration:underline;
font-size: 20pt;
line-height: 18pt;
font-weight: 900;
}
a.clean:link { color:#00a6e0;
text-decoration:underline;
font-size: 20pt;
@WilCF
WilCF / gist:e97fbb93306e092db98a
Created May 26, 2015 14:10
Only If Not Empty Liquid
<cml:radios name="category" label="Choose the best category for this product:" validates="required">
<cml:radio label="{{pt_1}}" value="{{pt_1}}" />
{% if pt_2 != '' and pt_2 != 'No data available' and pt_2 != empty %}
<cml:radio label="{{pt_2}}" value="{{pt_2}}" />
{% endif %}
{% if pt_3 != '' and pt_3 != 'No data available' and pt_3 != empty %}
<cml:radio label="{{pt_3}}" value="{{pt_3}}" />
{% endif %}
{% if pt_4 != '' and pt_4 != 'No data available' and pt_4 != empty %}
<cml:radio label="{{pt_4}}" value="{{pt_4}}" />
@WilCF
WilCF / gist:1dd5a76558a1c5358f41
Created May 26, 2015 21:00
JQuery to disallow similar textbox input submissions
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;
$(document).ready(function(){
$("input.submit").click(function(e){
var bad_answers = false;
$(".cml.jsawesome").each(function() {
<!-- The 'cml:select' tag is in regards to a dropdown list, where each dropdown option is a subtag labeled 'cml:option'. -->
<cml:select label="What type of room is this a part of?" name="room_type" instructions="Remember, use the image name as reference and verify the correct room type on the hotel website." only-if="hotel:[1]++notonlist:unchecked" gold="true">
<cml:option label="CF room" value="bad"></cml:option>
<!-- A Liquid for Designers for loop is used here to create each room type option from the choices list. 'item' is an arbritrary value for the for loop, but it must match the cml:option label. The value of this cml:option is also a Liquid value that inputs the corresponding value of an 'item' in the 'choices' array by calling the 'item's index number -->
{% for item in choices %}
<cml:option label="{{item}}" value="{{choices[forloop.index0]}}"></cml:option>
{% endfor %}
</cml:select>
Issue:
User has a FINISHED state job that has “"It seems like you've put input fields in your job that have the same names as headers in data you originally uploaded: tweet_id, handle. Please give the input fields in your job new names to avoid this problem.” error.
Expected: Despite error, I would be able to download the results for my job - I would expect I would not be able to relaunch the job.
Who does this affect?
Crowd reason - dozens of jobs
WCG - a few jobs
Apple - a few jobs
A handful of other customers who have written in.
<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://'}}">