Skip to content

Instantly share code, notes, and snippets.

View agrcrobles's full-sized avatar

Garcia agrcrobles

  • Barcelona
View GitHub Profile
@agrcrobles
agrcrobles / Setup my mac.md
Last active March 30, 2023 05:03
Setup my mac for react native on android
@agrcrobles
agrcrobles / netcore22-basic-principles.md
Last active March 30, 2020 11:26
Reviewing some basic concepts about netcoreapp2.2 with C#
@agrcrobles
agrcrobles / README.md
Created December 18, 2018 08:46
webpack bundle analyzer with create-react-app
@agrcrobles
agrcrobles / DEPS.md
Created December 12, 2018 10:19
Minimum webpack 4 dev server

Install deps

npm init
npm i --save-dev webpack webpack-cli webpack-dev-server
@agrcrobles
agrcrobles / README.md
Created December 8, 2018 08:40
fcm web notification
@agrcrobles
agrcrobles / index.js
Created December 6, 2018 21:03
service worker
// 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 October 29, 2018 11:16
express simple server

Simple Server in Express

  1. Fix the route when necessary

  2. Run

npm init
yarn add express
node index.js
@agrcrobles
agrcrobles / aspnetcore.development.dockerfile
Last active August 18, 2018 04:52
aspnetcore.dockerfile
FROM microsoft/dotnet:sdk
LABEL author="Dan Wahlin"
ENV DOTNET_USE_POLLING_FILE_WATCHER=1
ENV ASPNETCORE_URLS=http://*:5000
EXPOSE 5000
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;