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
@darkmatter18
darkmatter18 / fileCopy.c
Last active April 23, 2018 13:44
fcopy
#include<stdio.h>
#include<stdlib.h>
int main(){
FILE *fptr1, *fptr2;
char c;
fptr1=fopen("First.txt","w");
fptr2=fopen("Copy.txt","w");
if(fptr1==NULL && fptr2==NULL){
printf("THE FILES ARE NOT SAVED:-");
//Include Header file
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //Declearing lcd pins
int pinLED = 9; //Declearing LED pin for Android input
int PIN_OUT = 13; //Define the LED Pin for MorseCode
#define UNIT_LENGTH 250 //Define unit length in ms
@darkmatter18
darkmatter18 / magicPattern.c
Created December 23, 2018 15:20
11th Multiplication patttern
/*
********************************
* Magical Pattern printing *
* By - Arkadip *
* Time - 12/23/2018 8:41PM *
* ******************************
**/
#include<stdio.h>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#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()
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()
# 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])
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"
}
# 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)
#!/usr/bin/env node
'use strict'
console.log("Hello world")