Skip to content

Instantly share code, notes, and snippets.

View darkmatter18's full-sized avatar
:electron:
In relationship with console.log()

Arkadip Bhattacharya darkmatter18

:electron:
In relationship with console.log()
View GitHub Profile
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
#!/usr/bin/env node
'use strict'
console.log("Hello World")
{
"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",
#!/usr/bin/env node
'use strict'
console.log("Hello world")
# 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)
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"
}
# 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])
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()
#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.