Skip to content

Instantly share code, notes, and snippets.

View jerolan's full-sized avatar

Jerome Olvera jerolan

View GitHub Profile
package main
import (
"log"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
const customEnv = require('custom-env');
const NODE_ENV = process.env.NODE_ENV || 'development';
/**
* Shares behaviour with CRA for envs
* https://create-react-app.dev/docs/adding-custom-environment-variables#what-other-env-files-can-be-used
**/
customEnv.env();
customEnv.env('local');
/**
* Blowup
* Write a function which takes a string and returns the blowup of said string.
*
* Definition. Blowup of a string.
* The blowup of a string
* s = "a1a2a3..."
* is defined by
* blowup = "a1a2a2a3a3a3..."
* Flor example, the blowup of "bang!" is "baannngggg!!!!!"
/**
* TwoSum
* Write a function that takes a list and outputs alist of numbers
* belonging to the list that can be summed up to the first element of the list.
*
* Test Cases
* > twoSum [17, 4, 5, 6, 10, 11, 4, -3, -5, 3, 15, 2, 7]
* 6, 11, 10, 7, 15, 2
*
* > twoSum [7, 6, 4, 1, 7, -2, 3, 12]

Keybase proof

I hereby claim:

  • I am jerolan on github.
  • I am jerolan (https://keybase.io/jerolan) on keybase.
  • I have a public key whose fingerprint is 237E EF05 D9F1 C097 EFB9 60D8 6234 FB9D CF70 5F7B

To claim this, I am signing this object:

import React from 'react';
import { render, Document, Artboard, Page } from 'react-sketchapp';
import ThemeProvider from './components/ThemeProvider';
import CardEventResume from './components/CardEventResume';
import Card from './components/Card';
import event from '../event.json';
function CardPage(props) {
{
"event": {
"date": "30 Enero",
"time": "16:30",
"place": "UrbanHub"
},
"speakers": [
{
"name": "Persona 1",
"title": "Talk 1",
@jerolan
jerolan / Card.js
Created February 18, 2019 23:03
javascriptmid/profile-cards/blob/master/src/components/Card.js
import React from 'react';
import { Image, View, StyleSheet } from 'react-sketchapp';
import { ThemeConsumer } from './ThemeProvider';
import CardLayout from './CardLayout';
import Text from './Text';
const styles = StyleSheet.create({
CardContent: {
flex: 1,
@jerolan
jerolan / CardLayout.js
Created February 18, 2019 23:02
javascriptmid/profile-cards/blob/master/src/components/CardLayout.js
import React from 'react';
import { Image, View, StyleSheet } from 'react-sketchapp';
import { ThemeConsumer } from './ThemeProvider';
import Text from './Text';
const styles = StyleSheet.create({
Card: {
padding: 64,
height: 800,
@jerolan
jerolan / ThemeProvider.js
Created February 18, 2019 23:00
javascriptmid/profile-cards/master/src/components/ThemeProvider.js
import React, { createContext, Component } from 'react';
const ThemeContext = createContext();
export const colors = {
Yellow: '#FFE2A9',
Darker: '#232830',
Dark: '#65737E',
Light: '#D4D4D4',
Lighter: '#FFFFFF',