Skip to content

Instantly share code, notes, and snippets.

View SGarcia710's full-sized avatar

Sebastian Garcia SGarcia710

  • Astound Commerce
  • Chía, Colombia
  • 20:15 (UTC -05:00)
  • X @sebg96
View GitHub Profile
@SGarcia710
SGarcia710 / Fastlane
Created September 27, 2021 03:20 — forked from jukben/Fastlane
Fastlane – example how to increment versions based on package.json
# ios
match(...)
package = load_json(json_path: "../package.json")
increment_version_number(version_number: package["version"])
increment_build_number(build_number: ENV["CIRCLE_BUILD_NUM"] || 1)
# android
package = load_json(json_path: "../package.json")
@SGarcia710
SGarcia710 / gestureExamples.js
Created September 26, 2021 05:53 — forked from mcousillas6/gestureExamples.js
react-native-gesture-handler + react-native-reanimate example
import React, { useMemo, useRef } from 'react';
import { View } from 'react-native';
import { node } from 'prop-types';
import { PanGestureHandler, State, PinchGestureHandler } from 'react-native-gesture-handler';
import Animated from 'react-native-reanimated';
import styles from './styles';
/** styles.js
import { StyleSheet } from 'react-native';
@SGarcia710
SGarcia710 / Podfile
Created August 21, 2021 16:31
Podfile modificado para React Native en Apple M1
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'ReactNativeOnM1' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
@SGarcia710
SGarcia710 / README.md
Created May 29, 2020 09:52 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@SGarcia710
SGarcia710 / pdfController.js
Last active January 22, 2020 21:37
ExpressJS Endpoint to generate PDF's using PDFKit library.
const PDFDocument = require("pdfkit");
const generatePDF = async (info, doc) => {
doc
.font("Times-Roman")
.fontSize(12)
.text(info.title);
};
module.exports = {
@SGarcia710
SGarcia710 / swsh_v1.json
Created January 9, 2020 05:45 — forked from NoelDavies/swsh_v1.json
SwSh_v1.json
[{
"localDexId": "Galar Dex: Foreign",
"nationalDexId": "001",
"name": "Bulbasaur",
"stats": {
"hp": 0,
"atk": 0,
"def": 0,
"spa": 0,
"spd": 0,
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Bootstrap -->
<link
rel="stylesheet"
href="https://bootswatch.com/4/lux/bootstrap.min.css"