Skip to content

Instantly share code, notes, and snippets.

View priteshgupta's full-sized avatar

Pritesh Gupta priteshgupta

View GitHub Profile
def func():
out = []
ar1 = [1, 27, 50, 49, 51, 99, 51, 51]
for i1 in ar1:
for i2 in ar1:
if i1 + i2 == 100:
out.append(tuple(sorted((i1, i2))))
out = set(out)
from time import time
def sol():
words = open('words.txt')
stuph = open('stuph_sample.txt').read()
out = ''
wordsl = []
for word in words:
wordsl.append(word.strip())
<?php
$uri = 'https://mandrillapp.com/api/1.0/messages/send.json';
$params = array(
"key" => 'KEY_GOES_HERE',
"message" => array(
"html" => 'HTML_MAIL',
"to" => array(
array("email" => 'TO_MAIL')
),