Skip to content

Instantly share code, notes, and snippets.

View gaboelnuevo's full-sized avatar

Gabriel S. L gaboelnuevo

View GitHub Profile
name: AutoPublish Package - GPR
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
import UserIdentity from "../models/userIdentity";
import Patient, { PatientMethods } from "../models/patient";
import FacebookStrategy from "passport-facebook";
import GoogleStrategy from "passport-google-oauth20";
import fs from "fs";
const AppleSignInStrategy = require("passport-apple");
// fork from: https://raw.githubusercontent.com/kamalpandey/react-native-image-slider-show/master/Slideshow.js
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
Image,
Text,
View,
ScrollView,
StyleSheet,
// Modal
import { Modal as NativeModal } from "react-native";
import ImageViewer from "react-native-image-zoom-viewer";
class MyView extends React.Component {
renderImageModal () {
const image = this.state.selectedImage;
server {
listen 80;
root /var/www/react-app/build;
index index.html index.htm index.nginx-debian.html;
server_name your_server_ip_or_domain;
location / {
try_files $uri /index.html;
import { AsyncStorage, InteractionManager, Vibration } from "react-native";
import { NavigationActions } from "react-navigation";
import { Notifications } from "expo";
import _ from "lodash";
const appIcon = require("../../assets/icon.png");
// dependencias
const _ = require("lodash");
const AWS = require('aws-sdk');
const AmazonS3URI = require("amazon-s3-uri");
const request = require("request");
const accessparams = {
accessKeyId: "",
secretAccessKey: "",
};
const s3 = new AWS.S3(accessparams);
class Wallet {
constructor (patient, currency) {
this.patient = patient;
this.currency = currency;
}
async getBalanceAsync () {
// sum `amount` aggregation with patient and currency filter
return 0;
@gaboelnuevo
gaboelnuevo / server.js
Created October 30, 2019 18:18
Static
const express = require('express');
const app = express();
app.use(
express.static("dist"), {
maxAge: 0,
etag: false,
setHeaders: function(res: any, path: any, stat: any) {
res.set("Cache-Control", "private, no-cache, no-store, must-revalidate");
res.set("Expires", "-1");
@gaboelnuevo
gaboelnuevo / wrapper.js
Last active September 24, 2019 07:28
rn-vorlon-wrapper
import { Platform, YellowBox } from "react-native";
import _ from "lodash";
const ignoredYellowBox = console.ignoredYellowBox || [];
console.ignoredYellowBox = ["Setting a timer"].concat(...ignoredYellowBox);
YellowBox.ignoreWarnings(console.ignoredYellowBox);
var urljoin = require("url-join");
const io = require("socket.io-client");