Skip to content

Instantly share code, notes, and snippets.

View Prajwalprakash3722's full-sized avatar
⛰️
consistency is the key :)

Prajwal prakash Prajwalprakash3722

⛰️
consistency is the key :)
View GitHub Profile
int fibbonacci(int n)
{
if(n == 0)
return 0;
else if(n == 1)
return 1;
else
return (fibbonacci(n-1) + fibbonacci(n-2));
}
area reset,code
entry
mov r5,#10
ldr r0,=0x40000000
mov r1,#01
mov r2,#00
back add r3,r1,r2
str r3,[r0],#04
mov r2,r1
const arr = [1, 2, 3, 4, 5];
const newArr = arr
.map((element) => {
return element * 2;
})
.filter((element) => {
return element > 5;
});
console.log(newArr);
const arr = [1, 2, 3, 4, 5];
const newArr = arr.map((element) => {
return element * 2;
});
console.log(newArr);
const arr = [1, 2, 3, 4, 5];
arr.forEach((element) => {
console.log(element * 2);
});
import { Todo } from "@todo.types.ts";
class TodosApi {
getTodos(params: Todo.Controllers.Get.Request) {
return http.get<Todo.Controllers.Get.Response>('/todos', {
params,
});
}
addTodo(todo: Todo.Controllers.Add.Request) {
//todo.types.ts
export namespace Todo {
export interface TodoObject {
id: string;
title: string;
completed: boolean;
}
namespace Vehicle {
export class Bike {
user: User;
constructor(public inputUser: User) {
this.user = inputUser;
}
getName() {
return this.user.name;
}
}
namespace Vehicle {
class Bike {
user: User;
constructor(public inputUser: User) {
this.user = inputUser;
}
getName() {
return this.user.name;
}
}
import cv2 # we are importing the cv2 module from opencv
image_path = '/home/prajwal/OpenCv/image_1.jpeg' #change this path by your image path
image = cv2.imread(image_path) # Reading of image
cv2.imshow('Image-Reading', image) # Image output in new Window
cv2.waitKey(0)