Skip to content

Instantly share code, notes, and snippets.

db.turk_units.ensureIndex{
"step_id" : 1,
"response" : 1,
"status" : 1,
"data" : 1,
"training_example_id" : 1,
"tracking_example_id" : 1,
"generated_example_id" : 1
})
value: Ember.computed(function(key, value){
if (arguments.length === 1) { // getter
var _value = this.get("_value");
if (Ember.empty(_value)) {
return this.compileAttribute("initialValue");
}
else {
return _value;
}
}
web: bundle exec thin start -p $PORT -e $RACK_ENV
worker: QUEUE=* bundle exec rake resque:work
scheduler: bundle exec rake resque:scheduler
ruote: bundle exec rake ruote:run_worker
//
// Example request to create a task
//
// POST https://v1.houdiniapi.com/tasks.json HTTP/1.1
// Content-Type: application/json; charset=utf-8
{
"api_key": "[YOUR_API_KEY]",
"environment": "sandbox",
config.after_initialize do
::RuoteEngine = Ruote::Engine.new(
Ruote::Worker.new(
Ruote::Redis::RedisStorage.new(::REDIS)))
RuoteEngine.register_participant :turk_unit, TurkUnitParticipant
RuoteEngine.register_participant :weighted_consensus, WeightedConsensusParticipant
RuoteEngine.register_participant :printer do |workitem|
@chrisconley
chrisconley / tagging.js
Created December 29, 2011 15:11
Example Limelight API Calls to Houdini
// Create a task to create tags for a video
//
// POST https://v1.houdiniapi.com/tasks.json HTTP/1.1
// Content-Type: application/json; charset=utf-8
{
"api_key": "[YOUR_API_KEY]",
"environment": "sandbox",
"postback_url": "http://limelight.com/houdini_postback/12345",
"blueprint": "houdini.limelight_open_ended_tags.1",
---
- PM/author_33/11:2011
- PM/author_33/11:201112
- PM/author_33/11:20111222
- PM/author_33/11:2011122217
- PM/author_33:2011
- PM/author_33:201112
- PM/author_33:20111222
- PM/author_33:2011122217
- PM/global/11:2011
ActionController::Base.logger = Logger.new(STDOUT)
l = Licensee.find_by_subdomain('jennaavery')
LicenseeScopedModel.with_licensee(l) { Session.all({
:conditions => [
'sessions.start_day >= ? AND sessions.start_day <= ? AND sessions.locked_down_at is NULL',
Session.days_to_renew.days.ago.to_date - 2.days,
Session.days_to_renew.days.ago.to_date
]
})}
It is true that indoor plants can provide notable health benefits for you. Only if you choose the right plants. What do I mean? Well, not all indoor plants are beneficial in terms of health. Some plants are purely decorative but certain varieties constitute many health benefits. You’ll be surprised how great indoor plants are. They are not only aesthetically pleasing but are also good for your total well-being. Below is a short list of lovely indoor plants and their contributions to your health.
Peace Lily – Say bye bye to molds
Peace lilies are tropical plants with dark green leaves and pretty white flowers. They can grow up to 1 foot and can live for a few years if properly tended. Peace lily can reduce molds. The leaves absorb the mold organisms in the air and send it down to the roots which will serve as food. Put it in your bathroom to diminish the build-up of molds on tiles and curtains. This means less scrubbing and sneezing for you.
African Violets – Enhance your brain power
African violets are sm
...
{{#if "content.isString"}}
<input type="text" name="something" {{bindAttr class="content.required"}}>
{{/if}}
{{#if "content.isSelect"}}
{{#each parentView.content.selectOptions tagName="select" classNameBindings="parentView.parentView.content.required"}}
{{optionName}}
{{/each}}
{{/if}}
...