Skip to content

Instantly share code, notes, and snippets.

View roadev's full-sized avatar
🎯
Focusing

Juan Roa roadev

🎯
Focusing
View GitHub Profile
  1. Use the React Toolbox Card component for each post.
  2. Use the "Dame click" button to show/hide the comments component and rename with an appropiate name.
  3. Implement flexbox (pure CSS) for input styling (1 row, 2 columns)
  4. Define the data structure for a Post.

Resources

Data

const a = [1, 3, 4, 6, 12, 15, 23, 20];

const b = ['a', 'once a time', 'machine learning', 'beer', 'bear', 'beat'];

const c = [ { key1: 'abc' }, { key2: 1.2 }, { key3: false }, { key4: null }, { key5: undefined }, { key6: '' } ];

Challenges

Data

const i = fromJS(
  { name: 'Juan', age: 25 },
  { name: 'David', age: 34 },
  { name: 'Luis', age: 28 },
  { name: 'Andrés', age: 29 },
);
auth_key: [*('a'..'z'),*('0'..'9'),*('A'..'Z')].shuffle[0, 32].join
@roadev
roadev / puma.service
Created June 12, 2018 23:44 — forked from arteezy/puma.service
Manage Puma with systemd on Ubuntu 16.04 and rbenv
[Unit]
Description=Puma Rails Server
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/home/deploy/app/current
ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb
ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop
La Alcaldía de Santiago de Cali instala este jueves el comité de atención a población migrante
Con la presencia del gerente de Frontera, Felipe Muñoz, organismos internacionales y cumpliendo el compromiso del Alcalde, Maurice Armitage, de instalar una mesa para atender la crisis humanitaria que se presenta en Sudamérica a causa de la migración venezolana, mañana jueves 24 de enero de 2019, la Alcaldía de Santiago de Cali instala el comité de atención a la población migrante.
“Con el fin de garantizar los derechos humanos de cualquier persona, en este caso especial el de los migrantes venezolanos, que en Cali son alrededor de 37.622, abrimos este espacio para la instalación de este comité cuyo objetivo es la articulación de los diferentes organismos de la administración municipal en conjunto con agencias de cooperación. Este comité se conforma luego de que el alcalde de Cali, Maurice Armitage Cadavid, firmara un decreto por medio del cual se establece la creación del mismo”, aseveró Carolina Campo Ángel,
@roadev
roadev / serve.py
Created December 4, 2019 15:07 — forked from chrisbolin/serve.py
Python SimpleHTTPServer for Static Serving (React / Angular / Ember) in HTML5 mode (a la mod_rewrite)
'''
Taken from:
http://stackoverflow.com/users/1074592/fakerainbrigand
http://stackoverflow.com/questions/15401815/python-simplehttpserver
'''
import SimpleHTTPServer, SocketServer
import urlparse, os
PORT = 3000
// 1. Crear un nuevo array que contenga 3 elementos nuevos (personas) y cada uno debe tener una estructura como esta:
/*
{
name: 'Leidy',
lastname: 'Delgado',
age: 26,
fullname: 'Leidy Delgado',
favoriteColour: 'green',
company: 'Carvajal SA',
#!/bin/sh
# http://www.alfredklomp.com/programming/shrinkpdf
# Licensed under the 3-clause BSD license:
#
# Copyright (c) 2014-2019, Alfred Klomp
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# Add Docker's official GPG key:
apt-get update
apt-get install ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \