Skip to content

Instantly share code, notes, and snippets.

View kaysiz's full-sized avatar
🏠
Working from home

kudakwashe siziva kaysiz

🏠
Working from home
View GitHub Profile
@kaysiz
kaysiz / 0_reuse_code.js
Created April 11, 2017 09:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kaysiz
kaysiz / gist:b12d7283f2461c1e67b3d3e85cabb146
Created September 8, 2017 15:06 — forked from geoom/gist:5849204
CSS Media Queries for All Devices
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* STYLES GO HERE */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@kaysiz
kaysiz / app.component.html
Last active February 19, 2018 16:40
Djangular - PyConNamibia 2018
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">PyConNamibia 2018</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="#">Home <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link">Shop</a>
</div>
@kaysiz
kaysiz / index.md
Created July 8, 2018 15:04
Creating Login, Register page with Ionic

Create new Ionic project with blank template

ionic start login blank
cd login
ionic g provider authService
ionic g page register
ionic g page login
@kaysiz
kaysiz / open-source-beginner.md
Created August 27, 2018 09:29 — forked from nicknisi/open-source-beginner.md
A collection of JavaScript projects with issues labeled beginner-friendly
@kaysiz
kaysiz / export.php
Created November 9, 2018 15:19 — forked from dipakcg/export.php
Export MySQL to Excel (.xls) using PHP
<?php
/***** EDIT BELOW LINES *****/
$DB_Server = "localhost"; // MySQL Server
$DB_Username = "username"; // MySQL Username
$DB_Password = "password"; // MySQL Password
$DB_DBName = "databasename"; // MySQL Database Name
$DB_TBLName = "tablename"; // MySQL Table Name
$xls_filename = 'export_'.date('Y-m-d').'.xls'; // Define Excel (.xls) file name
/***** DO NOT EDIT BELOW LINES *****/
@kaysiz
kaysiz / sampleREADME.md
Created November 25, 2018 14:20 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

#!/bin/bash
# install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
source ~/.zshrc
# install brew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/mi-ndlovu/WTC-HomeBrew/master/install.sh)"
@kaysiz
kaysiz / occupation-dropdown.html
Created January 19, 2019 13:38 — forked from ag14spirit/occupation-dropdown.html
Form occupation drop down list
<fieldset>
<legend>Occupation</legend>
<select class="form-control dropdown" id="occupation" name="occupation">
<option value="" selected="selected" disabled="disabled">-- select one --</option>
<optgroup label="Healthcare Practitioners and Technical Occupations:">
<option value="1">- Chiropractor</option>
<option value="2">- Dentist</option>
<option value="3">- Dietitian or Nutritionist</option>
<option value="4">- Optometrist</option>
<option value="5">- Pharmacist</option>
@kaysiz
kaysiz / Draw.java
Created March 8, 2019 08:47 — forked from oa414/Draw.java
Android Touch Draw
package com.lxy.media;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.database.Cursor;
import android.graphics.*;
import android.hardware.Camera;
import android.media.ExifInterface;