Skip to content

Instantly share code, notes, and snippets.

View wootsbot's full-sized avatar
:octocat:
Doing this 'n' that.

jlca wootsbot

:octocat:
Doing this 'n' that.
View GitHub Profile
@wootsbot
wootsbot / google-sign-in.tsx
Created September 29, 2023 06:37 — forked from sonipranjal/google-sign-in.tsx
Supabase + Expo + Google Sign In
// go to supabase dashboard -> into auth -> url config -> put the Redirect URLs as [your-scheme]://google-auth
import * as WebBrowser from "expo-web-browser";
WebBrowser.maybeCompleteAuthSession();
const extractParamsFromUrl = (url: string) => {
const parsedUrl = new URL(url);
const params = parsedUrl.searchParams; // Using searchParams instead of splitting on "#"
{
"name": "gbm-el-patron-web",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@amplitude/ua-parser-js": {
"version": "0.7.20",
"resolved": "https://gbmcode.pkgs.visualstudio.com/_packaging/GBMNuget/npm/registry/@amplitude/ua-parser-js/-/ua-parser-js-0.7.20.tgz",
"integrity": "sha1-FWUvjMT+5y2WKl8hAc/ebzyOh7g="
@wootsbot
wootsbot / contribuye.rst
Created June 6, 2019 03:20
Publica tu artículo en codea.com.mx

Publica tu artículo en codea.com.mx

Clona el repositorio y prepara tu branch

$ git clone https://github.com/<mi-usuario-gitlab>/codea.git
$ cd codea/
import React from 'react'
import {InputText} from 'primereact/inputtext';
import {Button} from 'primereact/button';
class example extends React.Component {
this.state = {}
inputOnChangeTex(event) {
this.setState({[event.target.id]: event.target.value});
@wootsbot
wootsbot / tab-trigger.js
Created July 22, 2017 01:55 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{