Skip to content

Instantly share code, notes, and snippets.

from PIL import Image
def modify(fil):
image = Image.open(fil)
s = image.size
size = (max(s),max(s))
image.thumbnail(size, Image.ANTIALIAS)
background = Image.new('RGBA', size, (255, 255, 255, 0))
background.paste(
image,
((size[0] - image.size[0]) / 2, (size[1] - image.size[1]) / 2))
package com.example.httppostexample;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-I-JEE-JEEA/Main/Solutions/Solutions.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-I-JEE-JEEA/Advanced/PAPER-1/Questions/PAPER.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-I-JEE-JEEA/Advanced/PAPER-1/Solutions/Solutions.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-I-JEE-JEEA/Advanced/PAPER-2/Questions/PAPER.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-I-JEE-JEEA/Advanced/PAPER-2/Solutions/Solutions.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-II-JEEM-JEEA/Main/Questions/PAPER.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-II-JEEM-JEEA/Main/Solutions/Solutions.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-II-JEEM-JEEA/Advanced/PAPER-1/Questions/PAPER.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-II-JEEM-JEEA/Advanced/PAPER-1/Solutions/Solutions.pdf
http://www.fiitjee.com/AIITSJEE2015/AITS-2015-CRT-II-JEEM-JEEA/Advanced/PAPER-2/Questions/PAPER.pdf
#define echoPort1 7 // Echo Pin
#define trigPin1 8 // Trigger Pin
#define LEDPin1 6 // Onboard LED
#define echoPort2 13 // Echo Pin
#define trigPin2 12 // Trigger Pin
#define LEDPin2 6 // Onboard LED
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.