This file contains 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
{ | |
"uri": "/videos/730444990", | |
"name": "WZ_W8NEW_R01_SB_p21_v1_It_s_Getting_Harder_to_Spot_a_Deep_Fake_Video_(SD_(H264_900))", | |
"description": null, | |
"type": "video", | |
"link": "https://vimeo.com/730444990", | |
"player_embed_url": "https://player.vimeo.com/video/730444990?h=9994beebb6", | |
"duration": 163, | |
"width": 960, | |
"language": null, |
This file contains 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
#!/usr/bin/env bash | |
# Getting the environment variables | |
values=$(/opt/elasticbeanstalk/bin/get-config environment) | |
# Parsing the json and exporting them as environment variables | |
for env in $(echo $values | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" ); do | |
export $env | |
done |
This file contains 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
import config from 'verto-client-dashboard/config/environment'; | |
export default function() { | |
this.urlPrefix = config.general.backendHost; | |
this.namespace = config.general.namespace; | |
this.get('/image-collections'); | |
this.get('/image-collections/:id'); | |
this.post('/image-collections', function({ imageCollections }, request) { |
This file contains 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
class QuestionSerializer < ActiveModel::Serializer | |
attributes :id, | |
:content, | |
:type, | |
:answers_count, | |
:answer_size | |
def answers_count | |
return self.send(object.type) if %w[binary_swipe prioritise_top3 select_many date_picker].include?(object.type) |
This file contains 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
import React, { Component } from 'react'; | |
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; | |
import { Link, Redirect } from 'react-router-dom'; | |
import { Form, Text, TextArea, Radio, RadioGroup, Select, Checkbox, NestedField } from 'react-form'; | |
const BodegasFields = () => ( | |
<div className="row"> | |
<div className="col-md-4"> | |
<Text field="critico" /> | |
</div> |