Skip to content

Instantly share code, notes, and snippets.

Avatar

Zetta Garcia agrcrobles

  • Barcelona
View GitHub Profile
@agrcrobles
agrcrobles / Setup my mac.md
Last active Feb 9, 2021
Setup my mac for react native on android
View Setup my mac.md
@agrcrobles
agrcrobles / netcore22-basic-principles.md
Last active Mar 30, 2020
Reviewing some basic concepts about netcoreapp2.2 with C#
View netcore22-basic-principles.md
@agrcrobles
agrcrobles / README.md
Created Dec 18, 2018
webpack bundle analyzer with create-react-app
View README.md
@agrcrobles
agrcrobles / DEPS.md
Created Dec 12, 2018
Minimum webpack 4 dev server
View DEPS.md

Install deps

npm init
npm i --save-dev webpack webpack-cli webpack-dev-server
@agrcrobles
agrcrobles / README.md
Created Dec 8, 2018
fcm web notification
View README.md
View index.js
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
@agrcrobles
agrcrobles / README.md
Created Oct 29, 2018
express simple server
View README.md

Simple Server in Express

  1. Fix the route when necessary

  2. Run

npm init
yarn add express
node index.js
View aspnetcore.development.dockerfile
FROM microsoft/dotnet:sdk
LABEL author="Dan Wahlin"
ENV DOTNET_USE_POLLING_FILE_WATCHER=1
ENV ASPNETCORE_URLS=http://*:5000
EXPOSE 5000
View SimpleStarProviderDilemma.js
import Contract from 'truffle-contract';
import VotingArtifact from '../build/contracts/Voting.json';
import Web3 from 'web3';
function Star(candidate) {
const Voting = Contract(VotingArtifact);
var web3Provided;