Skip to content

Instantly share code, notes, and snippets.

View renegare's full-sized avatar
💭
I may be slow to respond.

Mudi Ugbowanko renegare

💭
I may be slow to respond.
View GitHub Profile
@renegare
renegare / ReactNativeNavigator.js
Last active November 29, 2019 14:58
React native navigator v4
import React from 'react';
import { createAppContainer, createSwitchNavigator, createStackNavigator } from 'react-navigation';
import AuthLoadingScreen from '../screens/Registration/AuthLoadingScreen';
import MainTabNavigator from './MainTabNavigator';
const RouteStack = createAppContainer(
createSwitchNavigator(
{
// You could add another route here for authentication.
// Read more at https://reactnavigation.org/docs/en/auth-flow.html
@renegare
renegare / Makefile
Created November 27, 2014 22:10
Handy makefile tasks
PROJ = $(shell basename `pwd`)
# Given a running fig container with the name "app" that exposes port 80, run the following task
# ```
# $ make ngrok-secure USER=username PASS=password
# ```
ngrok-secure: export PORT=$(shell fig port app 80 | sed 's/^.*:\([0-9][0-9]*\)$\/\1/')
ngrok-secure:
ngrok -httpauth=$(USER):$(PASS) -subdomain=$(PROJ)-`whoami` `boot2docker ip`:$(PORT)
@renegare
renegare / Throw.php
Last active August 29, 2015 14:08
The future of exceptions? death to the if statement?
<?php
namespace Will;
/**
* This class replaces if statement that throws exceptions with nice
* readable (DSL) code
*/
class Throw {
@renegare
renegare / gulp-karma.js
Last active March 28, 2018 05:37
Gulp Karma Integration
/**
* testing tasks (using karma to test in the browser). Requires a karma.conf.js for full config
* single-run testing
* continuous testing
*/
/** base deps, but you may need more specifically for your application */
var gulp = require('gulp');
var gutil = require('gulp-util');
var path = require('path');
@renegare
renegare / gist:3315139
Created August 10, 2012 15:46
wire.js pass a reference of the context to a component
define(function(){
var spec = {
some_resource: [],
app: {
module: 'module_a',
ready: {
init: [{ $ref: 'views_controllers'}]
}
},