Skip to content

Instantly share code, notes, and snippets.

View bpdarlyn's full-sized avatar

darlyn bpdarlyn

View GitHub Profile
@bpdarlyn
bpdarlyn / rest-definition.yaml
Created January 15, 2024 20:54
Swagger Editor
openapi: 3.0.0
info:
title: Arbitraining API
version: "v1.0.0-beta"
description: Definition for Arbitraining API
termsOfService: "http://example.com/terms/"
contact:
name: API Support
email: contact@bpdarlyn.com
license:
@bpdarlyn
bpdarlyn / .js
Created May 11, 2020 19:36
WebCam component in React. Works on Android, iOS and Desktop (With camera installed)
import React, {Component} from 'react';
const constraints = {video: {facingMode: "user"}, audio: false};
import {b64toBlob} from './../../main-app/helpers/functions';
import axios from 'axios';
navigator.getMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia);
import PropTypes from 'prop-types';
export default class TakePicture extends Component {
@bpdarlyn
bpdarlyn / axios-form-data.js
Created January 29, 2020 15:54
Send Form Data with axios and file attachments
# Create Form Data
const options = {
title: 'Selecciona tu Foto de Perfil',
};
_changeProfilePicture = () => {
ImagePicker.showImagePicker(options, response => {
if (response.didCancel) {
@bpdarlyn
bpdarlyn / version-app-android.json
Created September 8, 2018 04:04
Version Android Fake
{
"type": "ANDROID_VERSION",
"message": "PLEASE CHECK ABOVE VERSION",
"data": {
"latestVersion": "1.0.1"
}
}
DELIMITER //
create procedure darlyn(in _pay int)
begin
declare _per integer;
declare _cap decimal(12,4);
declare _fee decimal (12,4);
declare _pcb decimal (12,4);
declare _pb decimal (12,4);
declare cur1 cursor for