Skip to content

Instantly share code, notes, and snippets.

View FeezyHendrix's full-sized avatar
💻
Engineering my dreams

Abdulhafeez Abdulraheem FeezyHendrix

💻
Engineering my dreams
View GitHub Profile
@FeezyHendrix
FeezyHendrix / default nginx configuration file
Created June 19, 2019 10:49 — forked from xameeramir/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@FeezyHendrix
FeezyHendrix / connectivity.ts
Last active January 16, 2019 12:22
Ionic 3 - Check for connection before making HTTP Calls Using the Native Network Plugin and Toast Plugin
import { Injectable } from '@angular/core';
import { Platform } from 'ionic-angular';
import { Network } from '@ionic-native/network';
@Injectable()
export class ConnectivityProvider {
@FeezyHendrix
FeezyHendrix / app.scss
Created January 14, 2019 17:32
Make Ionic 3 modal smaller
ion-modal {
ion-backdrop {
visibility: visible;
}
.modal-wrapper {
width: 86%;
height: 86%;
margin: 7%;
position: absolute;
overflow: hidden;
@FeezyHendrix
FeezyHendrix / app.ts
Created November 26, 2018 10:04
Ionic3 alert before quiting the App
initializeApp() {
this.platform.ready().then(() => {
// place code inside initialize app function
this.platform.registerBackButtonAction(() => {
const overlayView = this.app._appRoot._overlayPortal._views[0];
if(overlayView && overlayView.dismiss) {
overlayView.dismiss();
} else {
@FeezyHendrix
FeezyHendrix / group-github-guide.md
Created July 16, 2018 23:37 — forked from andrewtkemp/group-github-guide.md
This is a very basic guide on how to start working on group projects at DevMountain with GitHub.

Simple Group Project Starting Guide for GitHub (DevMountain)

Geordyn Ader - Mentor - Dallas, TX Campus

Getting Started - Choose ONE person from your group to take care of the following steps

  1. Go to GitHub and click the + in the top right corner. Click New Organization.
  2. Give it a name - should relate to your project, obviously.
  3. Add email for ‘billing’ - do not worry, it’s free
  4. Choose the Free Plan
  5. It’ll take you to a new page. Now add everyone in your team onto the group (including your mentor)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function calc_godsFormula(a, b ,c){
var almighty_plus = (-(b) + Math.sqrt(Math.pow(b,2) - (4 * a * c)))/(2 * a);
var almighty_minus = (-(b) - Math.sqrt(Math.pow(b,2) - (4 * a * c)))/(2 * a);
@FeezyHendrix
FeezyHendrix / index.css
Created January 31, 2018 16:32
Css File
.row{
display: flex;
}
h4{
text-align: left;
font-family: arial;
font-size: 14px;
color: #fff;
padding-left: 16px;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Css </title>
<link rel="Stylesheet" href="index.css">
</head>
<body>
<!-- row -->
<div class="row">
@FeezyHendrix
FeezyHendrix / index.html
Created January 27, 2018 10:55
Brimadev Html class one
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nairaland Forum</title>
</head>
<body>
<!-- the header -->
<div align="center">
<!--this is a heading -->