Skip to content

Instantly share code, notes, and snippets.

Jay Patel imjaypatel

Block or report user

Report or block imjaypatel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@imjaypatel
imjaypatel / add.py
Last active Aug 29, 2015
Suspension not allowed here: IOError: encoder error -2 when writing image file
View add.py
from PIL import ImageFile
ImageFile.MAXBLOCK = max(image.size) ** 2
@imjaypatel
imjaypatel / index.py
Last active Aug 29, 2015
Calender Agenda Regexp
View index.py
import re
def time_replace(timeword):
timestr = timeword.group().lower()
flag = None
if 'h' in timestr:
flag = 1
elif ':' in timestr:
flag = 2
elif 'm' in timestr:
@imjaypatel
imjaypatel / index.html
Created Sep 21, 2014
Simple HTML Code
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Document</title>
<style type="text/css">
h3 {
color: #FF22CC;
}
</style>
@imjaypatel
imjaypatel / index.html
Last active Aug 29, 2015
Hide Show <p> tag in JQuery
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide();
});
$("#show").click(function(){
You can’t perform that action at this time.