Skip to content

Instantly share code, notes, and snippets.

@Grohden
Grohden / detox-run-android.yml
Created March 19, 2020 16:37
Azure devops detox run tests for ios and android
trigger:
- none
pool:
vmImage: 'ubuntu-latest'
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle
@eiximenis
eiximenis / token-replace.ps1
Last active July 16, 2018 12:59
Powershell: Replace tokens in content (or file) allowing pipe for input and/or output
Param(
[parameter(Mandatory=$false,ValueFromPipeline=$true)][string]$content="",
[parameter(Mandatory=$false)][string]$inputFile="",
[parameter(Mandatory=$false)][string]$outputFile="",
[parameter(Mandatory=$true)][hashtable]$tokens
)
if ([string]::IsNullOrEmpty($content)) {
if ([string]::IsNullOrEmpty($inputFile)) {
@RidaRidss
RidaRidss / Solution for No bundle url present. Make sure you’re running a packager server or have included a .jsbundle file in your application bundle.md
Created October 26, 2017 07:09
Got an Error : No bundle url present. Make sure you’re running a packager server or have included a .jsbundle file in your application bundle

Follow these commands

watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf build/ios
yarn cache clean
lsof -i :8081
kill -9 9771
kill $(lsof -t -i:8081)

yarn start --reset-cache

@satoryu
satoryu / README.md
Last active July 18, 2018 22:14
This template is for deploying a Web App for running PHP application whose dependencies are managed with Composer.

ARM Template to deploy new Web App for PHP application with Composer

The Azure Resource Manager template is for deploying

  • New Web App instance of PHP 7.0 under Free plan
  • Then install the site extension Composer to the Web App

Usage

Prerequisites

@wesleybliss
wesleybliss / docker-compose-node-mongo.yml
Created September 9, 2016 21:37
Docker Compose with example App & Mongo
version: '2'
services:
myapp:
build: .
container_name: "myapp"
image: debian/latest
environment:
- NODE_ENV=development
- FOO=bar
volumes:
@cmmartin
cmmartin / Example-BouncingText.js
Last active October 17, 2021 11:13
React Native HOC for easily adding spring animations to your components
/*
* EXAMPLE USAGE
* This component is text that will bounce on mount and
* every time `this.props.someProperty` changes.
* Too bad react native doesn't support decorators yet :/
*/
import React, {
Component,
StyleSheet,