Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pranid's full-sized avatar
🎯
Focusing

Praneeth Nidarshan pranid

🎯
Focusing
View GitHub Profile
@pranid
pranid / html-table2json-string.js
Last active December 16, 2021 19:00 — forked from ccheney/gist:4389114
jQuery: Convert HTML Table to JSON
(function($){
var convertTableToJson = function()
{
var rows = [];
$('table tr').each(function(i, n){
// Ignore empty
if(i != 0) {
var $row = $(n);
rows.push({
display_name: $row.find('td:eq(0)').text(),
@pranid
pranid / ReadMe.txt
Created December 11, 2017 12:11 — forked from zeuxisoo/ReadMe.txt
Simple upload and resize image on PHP
- attachment
- 1.jpg
- 2.jpg
...
...
...
- index.php
- resize_image.php
- uploader.php
@pranid
pranid / compare-images.php
Last active January 24, 2023 07:01 — forked from akosnikhazy/compare-images-class
Compare two images with PHP
<?php
class compareImages
{
private function mimeType($i)
{
/*returns array with mime type and if its jpg or png. Returns false if it isn't jpg or png*/
$mime = getimagesize($i);
$return = array($mime[0],$mime[1]);
switch ($mime['mime'])