This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import hashlib | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
from mongoengine import fields | |
class EncryptField(fields.BaseField): | |
def __init__(self, key: str, **kwargs): | |
self.bs = AES.block_size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict' | |
console.log("Hello World") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my_awesome_package", | |
"version": "1.0.0", | |
"description": "An Awesome NPX package", | |
"license": "ISC", | |
"author": { | |
"name": "Arkadip Bhattacharya", | |
"url": "https://www.arkadip.me" | |
}, | |
"main": "index.js", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict' | |
console.log("Hello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Take Multiple integer Input in single line | |
# and Store the inputs in a list(Python Array). | |
numbers = list(map(int, input("Enter space separated inputs").split())) | |
#print inputs | |
print(numbers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
implementation "androidx.camera:camera-core:1.0.0-beta08" | |
implementation "androidx.camera:camera-camera2:1.0.0-beta08" | |
implementation "androidx.camera:camera-lifecycle:1.0.0-beta08" | |
implementation "androidx.camera:camera-view:1.0.0-alpha15" | |
implementation "androidx.camera:camera-extensions:1.0.0-alpha15" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Problem 1 | |
# EXUNA | |
# Weird Modulo Problem | |
no=int(input()) | |
for _ in range(no): | |
input() | |
l=list(map(int,input().split())) | |
l.sort() | |
print(l[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import os | |
os.environ["OPENCV_FFMPEG_CAPTURE_OPTIONS"] = "rtsp_transport;0" | |
cap = cv2.VideoCapture('rtsp://192.168.0.102:5554/camera') | |
while(True): | |
# Capture frame-by-frame | |
ret, frame = cap.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Import Torch.nn | |
from torch import nn | |
#Declaring Class | |
class Network(nn.Module): | |
def __init__(): | |
super(type(self), self).init() | |
self.hidden = nn.Linear(784, 256) | |
self.output = nn.Linear(256, 10) | |
self.sigmoid = nn.Sigmoid() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder