Skip to content

Instantly share code, notes, and snippets.

View aflores's full-sized avatar

Armando Flores aflores

View GitHub Profile
@aflores
aflores / react-redux exercise
Last active October 22, 2019 02:00
Udemy - Modern React with Redux [2019 Update] exercise 154
<script type="text/babel" data-plugins="proposal-class-properties" data-presets="env,react">
// Action Creators - You don't need to change these
const increment = () => ({ type: 'increment' });
const decrement = () => ({ type: 'decrement' });
// { props.increment } is equivalet to { () => props.increment() }
const Counter = props => {
return (
<div>
<button onClick={ props.increment } className="increment">Increment</button>
<button onClick={ () => props.decrement() } className="decrement">Decrement</button>
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy ASP.Net Core app to Azure Web App - partsunlimited-web-20(staging)
on:
push:
branches:
- main
workflow_dispatch:
@aflores
aflores / lin-reg.txt
Created April 28, 2021 12:51
Linear-regression-txt
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
X = 2 * np.random.rand(100,1)
y = 4 + 3 * X + np.random.rand(100,1)
plt.scatter(X,y)
# np.c_[constants, vector] add (prepend a column) x0 = 1 to each instance
### Keybase proof
I hereby claim:
* I am aflores on github.
* I am aflores (https://keybase.io/aflores) on keybase.
* I have a public key ASCwPN76tJh68AERCeLABtEGF1eOD5ccAVgZtU0-bMPz-wo
To claim this, I am signing this object: