Skip to content

Instantly share code, notes, and snippets.

View iamonuwa's full-sized avatar
💭
Learning 🦀

Onuwa Nnachi Isaac iamonuwa

💭
Learning 🦀
View GitHub Profile
@iamonuwa
iamonuwa / example.component.ts
Created November 30, 2017 17:24 — forked from ckimrie/example.component.ts
Example on how to achieve RxJS observable caching and storage in Angular 2+. Ideal for storing Http requests client side for offline usage.
import { Component, OnInit, OnDestroy } from '@angular/core';
import {Http} from "@angular/http";
import { LocalCacheService } from "./local-cache.service";
@Component({
selector: 'app-example',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class ExampleComponent implements OnInit, OnDestroy {
@iamonuwa
iamonuwa / countries.json
Created March 7, 2017 11:04 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@iamonuwa
iamonuwa / basic.md
Created January 25, 2017 19:33 — forked from zenorocha/basic.md
New Firebase Auth vs Old Firebase Auth
@iamonuwa
iamonuwa / app
Last active January 19, 2017 09:13
Cross Origin Request Blocked. What's wrong with thes codes???
var app = angular.module('app', ['satellizer', 'ngRoute','ui.router', 'paystack', 'chieffancypants.loadingBar','truncate', 'homeModule', 'videoModule', 'packageModule', 'eventManagerModule', 'userManagerModule', 'upload', 'event'])
app.config(function($routeProvider, $locationProvider, $authProvider, $httpProvider){
$routeProvider
.when('/home', {
templateUrl: 'partials/home.html',
controller: 'HomeCtrl'
})
.when('/pricing', {
templateUrl: 'partials/pricing.html'
@iamonuwa
iamonuwa / Artisan.php
Created June 7, 2016 12:57
Laravel Cheat Sheet
php artisan --help OR -h
php artisan --quiet OR -q
php artisan --version OR -V
php artisan --no-interaction OR -n
php artisan --ansi
php artisan --no-ansi
php artisan --env
// -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
php artisan --verbose