Skip to content

Instantly share code, notes, and snippets.

View MrXyfir's full-sized avatar

xyfir MrXyfir

View GitHub Profile

Keybase proof

I hereby claim:

  • I am MrXyfir on github.
  • I am xyfir (https://keybase.io/xyfir) on keybase.
  • I have a public key whose fingerprint is 7A15 E56B DCC1 829A A187 026B D75B 6A3C B960 A93C

To claim this, I am signing this object:

@MrXyfir
MrXyfir / GestureHandler.tsx
Last active February 2, 2021 17:15
Drag / Pinch / Rotate / Scale / Zoom / Pan with React Native and TypeScript via react-native-gesture-handler
import { StyleSheet, ViewStyle, Animated, View } from 'react-native';
import React from 'react';
import {
RotationGestureHandlerStateChangeEvent,
PinchGestureHandlerStateChangeEvent,
PanGestureHandlerStateChangeEvent,
RotationGestureHandler,
State as GestureState,
PinchGestureHandler,
PanGestureHandler,
@MrXyfir
MrXyfir / expire-all-testflight-builds.js
Last active June 2, 2020 19:19
Automatically expire all builds in TestFlight
// Quick and dirty script to expire all builds in TestFlight
// Selectors could probably be improved and simplified
// Working as of June 2nd 2020
setInterval(() => {
const doneButton = document.querySelector("body > div.tb-modal.tb-default-theme.tb-modal--nofade.tb-modal--show.tb-modal--preshow > div.ng-isolate-scope.tb-modal__box > div > div:nth-child(2) > div.tb-modal__footer > div > button");
if (doneButton) doneButton.click();
const version = document.querySelector("#train\\.id > table > tbody > tr > td:nth-child(2) > a");
if (version) version.click();
@MrXyfir
MrXyfir / remotestoragejs.d.ts
Last active May 27, 2019 21:13
remotestorage.js incomplete type definitions
declare module 'remotestoragejs' {
export interface Access {
/** Claim access on a given scope with given mode. */
claim(
/**
* An access scope, such as "contacts" or "calendar" or "*".
*/
scope: string,
/**
* Access mode. Either "r" for read-only or "rw" for read/write.