Skip to content

Instantly share code, notes, and snippets.

View ferreiro's full-sized avatar
👨‍🎤
Dancing in the rain

Jorge Ferreiro ferreiro

👨‍🎤
Dancing in the rain
View GitHub Profile
@ferreiro
ferreiro / favorite-tech-hackathons.md
Last active October 23, 2019 21:53
Some of the hackathons I like or I have attended.

Favorite tech hackathons

  • Devpost is the home for hackathons, and it contains a great list of hackathons.
  • MLH: Major League Hacking, contains the 2020 Hackathon Season.

United States

  • PennApps (UPenn, University of Pennsylvania).
  • HackMIT (The Massachusetts Institute of Technology).
  • Cal Hacks (UC Berkeley).
  • Hack The North (University of Waterloo).
$ cd web-app && yarn start
[0] [nodemon] 1.18.9
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching: *.*
[0] [nodemon] starting `babel-node ./bin/www`
$ react-scripts start
[1]
[1] There might be a problem with the project dependency tree.
[1] It is likely not a bug in Create React App, but something you need to fix locally.
[1]

Answers to the questions from Lesson 2: Rendering UI with React

1) What is a component? How do components relate to props?

A component is a reactJS object that knows how to render itself and combines a bunch of small elements together with the goal of grouping and encapsulating functionality.

Props are one of the ways to pass data to a component. More in detail, props are the properties available to use for the component.

2) How do we know whether something should be a component in React?

@ferreiro
ferreiro / passport.js
Last active November 9, 2016 19:43
Configuration
'use strict'
const passport = require('passport')
const configuration = require('../config')
const tokens = configuration.tokens
// User models
const UserDB = require('../api/v1/database/user')
// Passport strategies modules

¡Un montón de cosas! De entrada, como ingeniero informático y apasionado por programar, estar en un evento como codemotion es genial para conectar con un montón de gente super interesante haciendo cosas muy chulas. Además, siempre me ha interesado la organización de eventos y me molaría aprender de gente como vosotros. Como experiencia, en mi facultad organicé y di un workshop de diseño web patrocinado por github (vinieron 50 personas, un hito en mi facultad :P) y también estuve organizando durante un año aprox un evento de emprendedores de madrid (iniciador.com/madrid), congregabamos en torno a 80-100 personas. Pero claro, nada de la magnitud de codemotion! Así que tengo ganas de aprender cómo lo hacéis.

Además, por nombrar algunas cosas más:

  • Ayudar a que los ponentes se sientan felices y no les falte de nada durante su paso por Codemotion.
  • Hacer networking con mis compañeros (voluntarios) y también con los asistentes y ponentes del evento.
  • Agilizar los procesos para que todos los asistentes sepan co
#include <iostream>
using namespace std;
const int MAX_DB_SIZE = 10000;
struct Car {
string name;
int lowPrice;
int highPrice;
};
@ferreiro
ferreiro / problem1.py
Created October 10, 2016 23:39
Problem 1237
# python version: 3
# how to execute? In a bash shell: python3 problem1.py < testCases.txt > testCases.mio
import sys
total_cases = int(input()) # reads the total cases from stdin
solution = ""
for i in range(0, total_cases):
@ferreiro
ferreiro / UdacityDownload.py
Created October 2, 2016 00:15 — forked from vinovator/UdacityDownload.py
Python program to download course content for multiple Udacity courses neatly arranged within a folder structure
# UdacityDownload.py
# Python 2.7.6
"""
Python script to download course content from udacity courses
- Creates folders as per course names
- Downloads all the zip files
- Extract content from zip file
- Finally delete the zip file
Multiple course content can be downloaded from list
@ferreiro
ferreiro / 1237
Created September 30, 2016 00:11
import sys
elements = []
total_cases = int(input())
for i in range(0, total_cases):
db_size = int(input())
for j in range(0, db_size):
@ferreiro
ferreiro / api.js
Created September 17, 2016 16:56 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');