Skip to content

Instantly share code, notes, and snippets.

View Syedwaheed's full-sized avatar

Waheed shah Syedwaheed

  • AppInSnap Pvt Ltd
  • islamabad
View GitHub Profile
<!--This is the div that shows the user to click for the video-->
<div class="innerr" data-toggle="modal" data-target="#myModals1">
<video class="video-js vjs-big-play-centered" controls
poster="" width="275" height="150" data-setup='{}'>
</video>
<p>Example video</p>
</div>
<!-- Video will show in modal-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $pageTitle; ?></title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.4 -->
<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
@Syedwaheed
Syedwaheed / mkfavicon.sh
Created December 19, 2017 14:03 — forked from pfig/mkfavicon.sh
Make a multi-resolution favicon.ico from a source image, using ImageMagick
#!/bin/bash
# from
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png
convert favicon-256.png -resize 16x16 favicon-16.png
convert favicon-256.png -resize 32x32 favicon-32.png
convert favicon-256.png -resize 64x64 favicon-64.png
convert favicon-256.png -resize 128x128 favicon-128.png
@Syedwaheed
Syedwaheed / yourdonutchartpage.php
Created May 18, 2016 06:40
Morris donut chart for real data
<?php
include("../phpfiles/include/Config.php"); //db connect
$dbc = @mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE);
if(!$dbc)
{
trigger_error('Could not connect to MySql:'. mysqli_connect_error());
}
@Syedwaheed
Syedwaheed / Morrisdata.php
Last active May 18, 2016 06:42
how to show database values to Morris bar chart
<?php
session_start();
include("../phpfiles/include/Config.php"); // making connection to database
$dbc = @mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE);
if(!$dbc)
{