Skip to content

Instantly share code, notes, and snippets.

View ChronSyn's full-sized avatar

Scott Pritchard ChronSyn

View GitHub Profile
BIG iOS URL SCHEME LIST
HAD TO MAKE A DROPBOX FILE BECAUSE THIS LIST WAS TOO LONG TO POST IN THE COMMENTS OR NOT MAKE THE WORKFLOW APP TAKE FOREVER TO READ IT.
☠JAILBREAK/SYSTEM APPS
--------------------------
activator://
itms-apps://
itms-services://
@ChronSyn
ChronSyn / password_autofill_expo_how_to.md
Created September 18, 2018 16:50 — forked from amcvitty/password_autofill_expo_how_to.md
Configure Password Autofill on a React Native Expo app

Password Autofill on a React Native Expo app

Developing an app to accompany our website, worried that we would lose people in the transition if they couldn't remember their password, we were looking to make our app do Password AutoFill, a feature in iOS.

A talk from WWDC introducing the feature: https://developer.apple.com/videos/play/wwdc2017/206/

It works well, but there were a few bumps in the road making it work for React Native on Expo, so here are some notes to help out.

Apple's docs are here: https://developer.apple.com/documentation/security/password_autofill and they say something like this:

@ChronSyn
ChronSyn / withEventEmitter.js
Created January 15, 2019 08:38 — forked from tsapeta/withEventEmitter.js
Expo TaskManager example with EventEmitter
import React from 'react';
import { TaskManager } from 'expo';
import { EventEmitter } from 'fbemitter';
const taskName = 'task-name-of-your-choice';
const taskEventName = 'task-update';
const eventEmitter = new EventEmitter();
TaskManager.defineTask(taskName, ({ data, error }) => {
if (!error) {
@ChronSyn
ChronSyn / Fade.tsx
Created July 5, 2019 11:51 — forked from jesster2k10/Fade.tsx
React Native iOS 11 Style Large Title with Support For Search Component & Menu Buttons
import React, { Component } from 'react'
import { Animated, StyleProp, ViewStyle } from 'react-native'
export type FadeDirection = 'up' | 'down'
interface FadeProps {
visible?: boolean
style?: StyleProp<ViewStyle>
children: React.ReactNode
direction?: FadeDirection
@ChronSyn
ChronSyn / LimitStream.js
Created November 22, 2019 19:58 — forked from 4poc/LimitStream.js
Node.js: LimitStream (Bandwidth limited Readable+Writable Stream)
var fs = require('fs'),
util = require('util'),
Stream = require('stream').Stream;
/**
* Create a bandwidth limited stream
*
* This is a read+writeable stream that can limit how fast it
* is written onto by emitting pause and resume events to
* maintain a specified bandwidth limit, that limit can
@ChronSyn
ChronSyn / README.md
Created January 30, 2020 10:36 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@ChronSyn
ChronSyn / ShadowView.js
Created May 28, 2021 01:13 — forked from lletfrix/ShadowView.js
ShadowView.js
import React from 'react';
import { View, StyleSheet, Text, Dimensions, Platform } from 'react-native';
import Svg, { Circle, Rect, Defs, Use, Symbol, ForeignObject, LinearGradient, RadialGradient, Stop, G} from 'react-native-svg';
import { LinearGradient as LGradient } from 'expo-linear-gradient';
const Gauss = (x, sigma) => 1/(sigma * Math.sqrt(2*Math.PI)) * Math.exp( - (x**2) / (2*sigma**2 ))
const dot = (v1, v2) => v1.reduce( (acc, comp, idx) => (acc + comp*v2[idx]), 0)
const convolutions = (img, ker) => {
@ChronSyn
ChronSyn / main.go
Created December 8, 2021 03:51 — forked from satishbabariya/main.go
supabase + gorush notification middleware service
package main
import (
"fmt"
"net/http"
"os"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/sirupsen/logrus"