Skip to content

Instantly share code, notes, and snippets.

View dubeyji10's full-sized avatar
💭
Cogito, ergo sum

Abhishek Dubey dubeyji10

💭
Cogito, ergo sum
View GitHub Profile
@dubeyji10
dubeyji10 / PY0101EN-1-1-Types.ipynb
Created June 11, 2019 05:58
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / PY0101EN-1-2-Strings.ipynb
Created June 11, 2019 06:06
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / bamboo_tree.dot
Created July 12, 2019 16:04
Created on Cognitive Class Labs
digraph Tree {
node [shape=box, style="filled", color="black"] ;
0 [label=<node &#35;0<br/>cumin &le; 0.5<br/>samples = 2448<br/>value = [442, 598, 320, 799, 289]<br/>class = korean>, fillcolor="#3c39e51c"] ;
1 [label=<node &#35;1<br/>roasted_sesame_seed &le; 0.5<br/>samples = 1986<br/>value = [438, 237, 314, 796, 201]<br/>class = korean>, fillcolor="#3c39e53b"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label=<node &#35;2<br/>starch &le; 0.5<br/>samples = 1738<br/>value = [433, 237, 309, 560, 199]<br/>class = korean>, fillcolor="#3c39e519"] ;
1 -> 2 ;
3 [label=<node &#35;3<br/>samples = 1507<br/>value = [273, 235, 293, 519, 187]<br/>class = korean>, fillcolor="#3c39e52f"] ;
2 -> 3 ;
4 [label=<node &#35;4<br/>samples = 231<br/>value = [160, 2, 16, 41, 12]<br/>class = chinese>, fillcolor="#e58139a0"] ;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dubeyji10
dubeyji10 / paint.py
Created August 14, 2020 16:37 — forked from nikhilkumarsingh/paint.py
A simple paint application using tkinter in Python 3
from tkinter import *
from tkinter.colorchooser import askcolor
class Paint(object):
DEFAULT_PEN_SIZE = 5.0
DEFAULT_COLOR = 'black'
def __init__(self):
@dubeyji10
dubeyji10 / zoho_crm_postman_environment.json
Last active May 16, 2022 10:55
postman environment for zoho crm apis
{
"id": "dd809867-e207-43b8-ae65-2e9cd14903f7",
"name": "dubey_zoho_env_2",
"values": [
{
"key": "accounts-url",
"value": "https://accounts.zoho.in",
"enabled": true
},
{
@dubeyji10
dubeyji10 / sampleInsert.py
Created May 16, 2022 10:54
# for insertion of lead to zoho crm using v2 api
from pprint import pprint
import requests
import json
url = "https://www.zohoapis.in/crm/v2/Leads"
# trying to insert a lead using api and requests
'''
this is just a sample dummy input to the crm
'''
@dubeyji10
dubeyji10 / header.json
Created May 16, 2022 10:58
custom module data fetch from zoho crm
{"scope":["ZohoCreator.report.READ"],
"expiry_time":"auto-generated",
"client_id":"add-your-client-secret",
"client_secret":"add-your-client-secret",
"code":"code-add-from-client",
"grant_type":"authorization_code"
}
import requests
import pprint
import json
'''
Note : add https:// to the url it wont work without it
and for indian region use .in for accounts-domain(or accounts-url)
, and for api-domain
to get conversation from zoho crm
url = https://www.zohoapis.in/crm/v2/custom-module-name
@dubeyji10
dubeyji10 / refreshToken.py
Created May 16, 2022 11:09
generating new access tokens from refresh token
import requests
'''
16 may 2022
create new client for new tokens
-> try new scopes for insert
-> tokens expire after 1hr so refresh and create new access tokens
'''
url = "https://accounts.zoho.in/oauth/v2/token?"
payload={