Skip to content

Instantly share code, notes, and snippets.

View junaidpv's full-sized avatar

Junaid P V junaidpv

View GitHub Profile
@junaidpv
junaidpv / Makefile
Created May 5, 2021 01:18 — forked from mcous/Makefile
Simple AVR Makefile template
# simple AVR Makefile
#
# written by michael cousins (http://github.com/mcous)
# released to the public domain
# Makefile
#
# targets:
# all: compiles the source code
# test: tests the isp connection to the mcu
@junaidpv
junaidpv / highlight.css
Created March 7, 2016 09:12 — forked from akanehara/highlight.css
pandoc code-highlight css
code > span.kw { color: #268BD2; font-weight: bold; }
code > span.dt { color: #268BD2; }
code > span.dv { color: #D33682; }
code > span.bn { color: #D33682; }
code > span.fl { color: #D33682; }
code > span.ch { color: #4070a0; }
code > span.st { color: #2AA198; }
code > span.co { color: #93A1A1; font-style: italic; }
code > span.ot { color: #A57800; }
code > span.al { color: #CB4B16; font-weight: bold; }
@junaidpv
junaidpv / zip.php
Created July 8, 2013 04:09 — forked from anonymous/zip.php
PHP script to zip a folder. It can be used on webhosts where functionality of zipping a folder is not enabled.
<?php
$path="../ctest";
$zip = new ZipArchive;
$zip->open('../ctest.zip', ZipArchive::CREATE);
if (false !== ($dir = opendir($path))) {
while (false !== ($file = readdir($dir))) {
if ($file != '.' && $file != '..') {
$zip->addFile($path.DIRECTORY_SEPARATOR.$file);
//delete if need