I hereby claim:
- I am mraarif on github.
- I am mraarif (https://keybase.io/mraarif) on keybase.
- I have a public key ASA5L4lc1DRL6QnO4pwn80kIfDYIKMJHY8sdBpi0mgVkgAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| def check_if_passes(input_array): | |
| is_divisible = sum(input_array) % 3 == 0 | |
| if not is_divisible: | |
| return is_divisible | |
| chunk = sum(input_array) / 3 | |
| entries = [] | |
| addition = 0 | |
| for item in input_array: | |
| addition = item + addition | |
| if addition == chunk: |
| import requests | |
| def post_multipart(): | |
| try: | |
| user = {'email': '[email protected]', 'first_name': 'test user 1','password': 'samplepassword'} | |
| image = {'image': open('path/to/file', 'rb')} | |
| requests.post('/api/url', files=image, data=user) | |
| except Exception as ex: | |
| print('user creation failed') |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Utils | |
| { | |
| public static class DateTimeComparisonExtensions | |
| { |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Utils | |
| { | |
| public static class DateTimeExtensions | |
| { |
| using System.IO; | |
| using System.Linq; | |
| using System.Web; | |
| namespace static class FileUploadHelper | |
| { | |
| //customize the file size limit accordingly | |
| private const double MaximumFileSize=10*1024*1024; | |
| public static string UploadFile(HttpPostedFile file) |