- Use the React Toolbox Card component for each post.
- Use the "Dame click" button to show/hide the comments component and rename with an appropiate name.
- Implement flexbox (pure CSS) for input styling (1 row, 2 columns)
- Define the data structure for a Post.
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 },
);
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
auth_key: [*('a'..'z'),*('0'..'9'),*('A'..'Z')].shuffle[0, 32].join |
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
[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 |
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
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, |
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
''' | |
Taken from: | |
http://stackoverflow.com/users/1074592/fakerainbrigand | |
http://stackoverflow.com/questions/15401815/python-simplehttpserver | |
''' | |
import SimpleHTTPServer, SocketServer | |
import urlparse, os | |
PORT = 3000 |
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
// 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', |
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
#!/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: |
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
# 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 \ |