Skip to content

Instantly share code, notes, and snippets.

View makirby's full-sized avatar
🌴
🔢

merrick kirby makirby

🌴
🔢
View GitHub Profile
@makirby
makirby / Jest_GitLab_CI.md
Created August 3, 2021 12:02 — forked from rishitells/Jest_GitLab_CI.md
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages:

Tooling needed

macOS

// TODO add Android tooling

{
"workbench.sideBar.location": "right",
"editor.tabSize": 2,
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.colorTheme": "One Dark Pro",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@makirby
makirby / Interactable.tsx
Created February 14, 2020 11:07
Interactable view in typescript with modifications
import React, { Component } from 'react'
import Animated from 'react-native-reanimated'
import { PanGestureHandler, State as GestureState } from 'react-native-gesture-handler'
import { StyleProp, ViewStyle, ViewProps, InteractionManager } from 'react-native'
import _ from 'lodash'
const {
add,
cond,
diff,

Keybase proof

I hereby claim:

  • I am makirby on github.
  • I am merrick (https://keybase.io/merrick) on keybase.
  • I have a public key whose fingerprint is 63A7 9F62 1240 EFF5 9635 BED0 3209 E142 BC37 EDB0

To claim this, I am signing this object:

iff --git a/node_modules/tipsi-stripe/ios/TPSStripe/TPSStripeManager.m b/node_modules/tipsi-stripe/ios/TPSStripe/TPSStripeManager.m
index 733ec38..97d7dc0 100644
--- a/node_modules/tipsi-stripe/ios/TPSStripe/TPSStripeManager.m
+++ b/node_modules/tipsi-stripe/ios/TPSStripe/TPSStripeManager.m
@@ -358,8 +358,6 @@ - (NSDictionary *)constantsToExport
resolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject) {
NSDictionary<TPSStripeType(confirmPaymentIntent), id> *params = untypedParams;
- NSString * returnURL = [RCTConvert NSString:TPSStripeParam(confirmPaymentIntent, returnURL)];
-
patch-package
--- a/node_modules/react-native/React/Base/RCTUtils.m
+++ b/node_modules/react-native/React/Base/RCTUtils.m
@@ -714,7 +714,14 @@ UIImage *__nullable RCTImageFromLocalAssetURL(NSURL *imageURL)
} else {
fileData = [NSData dataWithContentsOfURL:imageURL];
}
- image = [UIImage imageWithData:fileData];
+ // Fix Codepush
+ CGFloat scale = 1.0;
#!/usr/bin/env bash
# Shell prompt based on the Solarized Dark theme.
# Screenshot: http://i.imgur.com/EkEtphC.png
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing.
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
@makirby
makirby / cocoa
Created April 18, 2017 08:24
cocoa pods cleanup
rm -rf ~/Library/Caches/CocoaPods; rm -rf Pods; rm -rf ~/Library/Developer/Xcode/DerivedData/*; pod deintegrate; pod setup; pod install;