Skip to content

Instantly share code, notes, and snippets.

View blacksmithop's full-sized avatar
😁
Creating

Abhinav blacksmithop

😁
Creating
View GitHub Profile
CHEAT SHEET
1. Database Creation
CREATE DATABASE SampleGraphDatabase
This creates a database named SampleGraphDatabase
2. View data
{
"openapi": "3.1.0",
"info": {
"title": "FastAPI",
"version": "0.1.0"
},
"paths": {
"/": {
"get": {
"summary": "Root",
(function(sttc){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa={},n=this||self;function ba(a){a=a.split(".");for(var b=n,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}function ca(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"}function da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function fa(a){return Object.prototype.hasOwnProperty.call(a,ha)&&a[ha]||(a[ha]=++ia)}
var ha="closure_uid_"+(1E9*Math.random()>>>0),ia=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}function ka(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function la(a,b,c){la=Function.prototype.bind&&-1!=Function.prototy
@blacksmithop
blacksmithop / songs.md
Last active April 10, 2024 06:20
Songs that evoke anemoia

Anemoia

Songs that make you nostalgic for a time or a place you haven't been in

Achilles Come Down Youtube

Soldier, Poet, King Youtube

@blacksmithop
blacksmithop / Readme.md
Created March 6, 2023 09:30
Text to Speech demo (with pyttsx3 & streanlit)

image

@blacksmithop
blacksmithop / custom-ner-model-training.ipynb
Last active March 1, 2023 11:53
custom-ner-model-training.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blacksmithop
blacksmithop / requirements.txt
Created November 21, 2022 10:56
Basic requirements of (almost) every Data Science project
pandas
openpyxl
spacy
@blacksmithop
blacksmithop / iterate-walrus.py
Created August 10, 2022 12:03
Iteration using walrus operator
items = list(range(1,11))
i_items = iter(items)
while el := next(i_items):
print(el)
@blacksmithop
blacksmithop / ouroboros.py
Created August 10, 2022 11:54
Infinite iterator
from itertools import chain
def gen_iterables():
while True:
for i in range(1, 6): # memory equivalent to that used by `range` is consumed at any moment
yield range(i)
gen = chain.from_iterable(gen_iterables())
for i in range(20):
@blacksmithop
blacksmithop / drop_duplicate_if_null.py
Last active August 3, 2022 09:08
Drop duplicate row if column is null
>>> df1
name flag
0 1 1
1 2 1
2 3 1
3 4 1
>>> df2
name flag
0 3 NaN
1 4 NaN