Skip to content

Instantly share code, notes, and snippets.

View carrfane's full-sized avatar
🏠
Working from home

Hector Carrillo carrfane

🏠
Working from home
  • Hyperdrive
  • Santiago de Chile
View GitHub Profile
{
"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,
#!/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
@carrfane
carrfane / config.js
Created November 20, 2019 14:59
Mirage Config File
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) {
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)
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>