Skip to content

Instantly share code, notes, and snippets.

View jainal09's full-sized avatar
🎯
Focusing

Jainal Gosaliya jainal09

🎯
Focusing
  • Doble Engineering
  • Boston
  • 21:28 (UTC -12:00)
View GitHub Profile
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+k",
"command": "git.push"
},
{
"key": "ctrl+l",
"command": "git.pull"
},
#!/usr/bin/env python
import hashlib
from pyfingerprint.pyfingerprint import PyFingerprint
import json
import datetime
import time
from time import sleep, strftime
import mysql.connector
Access to XMLHttpRequest at 'https://devfolio.sgp1.digitaloceanspaces.com/resumes/a1cba23c48944fae8e52441fb9db4101.pdf?Content-Type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=JPSWB4KQJFUXHWYREC6C%2F20190430%2Fsgp1%2Fs3%2Faws4_request&X-Amz-Date=20190430T053418Z&X-Amz-Expires=60&X-Amz-Signature=0476d8cf8d826cac46ff260fa01226643d84c49bf4681faceaa4d1acae8843ca&X-Amz-SignedHeaders=content-disposition%3Bhost%3Bx-amz-acl&x-amz-acl=private' from origin 'https://devfolio.co' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
Uncaught (in promise) TypeError: Cannot read property 'status' of undefined
at Object.errorHandler (bundle.67fc502b.js:1)
at bundle.67fc502b.js:97
at c (bundle.67fc502b.js:115)
at Generator._invoke (bundle.67fc502b.js:115)
at Generator.e.(anonymous function) [as throw] (https://devfolio.co/bundle.67fc502b.js:115:42387)
at y (bundle.67fc502b.js:97)
a
@jainal09
jainal09 / travis.yml
Created July 6, 2019 19:01
Travis Build File for Competetive Coding Competetion
matrix:
include:
- language: c
before_script:
- chmod +x scripts/dropbox_uploader.sh
script:
- scripts/dropbox_uploader.sh
- scripts/dropbox_uploader.sh download /cases/input.txt input.txt
- scripts/dropbox_uploader.sh download /cases/input1.txt input1.txt
- scripts/dropbox_uploader.sh download /cases/input2.txt input2.txt
#*************************************************************************************************************
#*************************************************************************************************************
# Code Checker Customly build for Clash Of Code
#
#
# BY: JAINAL GOSALIYA
# DATE: 04 JULY, 2019
#
#
#*************************************************************************************************************
@jainal09
jainal09 / forms.py
Created June 1, 2021 06:47
Django Forms Dynamic Choice Field Class Based Views
from django import forms
class UploadDocumentForm(forms.Form):
def __init__(self, company, filling_type, financials_types, *args, **kwargs):
super(UploadDocumentForm, self).__init__(*args, **kwargs)
self.fields["company"] = forms.ChoiceField(choices=company)
self.fields["financials_type"] = forms.ChoiceField(choices=filling_type)
self.fields["filling_types"] = forms.ChoiceField(choices=financials_types)
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
#!/bin/python3
import math
import os
import random
import re
import sys
import math
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
@jainal09
jainal09 / Search.java
Created April 1, 2023 23:15
Binary Search in Java
/*
* A binary search algorithm implementation in Java
*/
public class MyBinarySearch {
public static void main(String[] args) {
int[] numbers = {2, 12, 15, 17, 27, 29, 45};
int targetValue = 17;
System.out.println(binarySearch(numbers, targetValue));
}