A Pen by Soumyajit Nayak on CodePen.
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 cv2 | |
import numpy as np | |
import math | |
import matplotlib.pyplot as plt | |
## (1) read | |
img = cv2.imread("img.jpg") | |
image = cv2.fastNlMeansDenoisingColored(img,None,10,10,7,21) | |
cv2.imshow("denoised", img) | |
cv2.waitKey(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 tkinter as tk | |
import time | |
class App(): | |
def __init__(self): | |
self.root = tk.Tk() | |
self.label = tk.Label(text="") | |
self.label.pack() | |
self.update_clock() | |
self.root.mainloop() |
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
<?php | |
namespace App\Helpers; | |
class NepaliCalendar { | |
private $_bs = array( | |
0 => array(2000,30,32,31,32,31,30,30,30,29,30,29,31), | |
1 => array(2001,31,31,32,31,31,31,30,29,30,29,30,30), | |
2 => array(2002,31,31,32,32,31,30,30,29,30,29,30,30), | |
3 => array(2003,31,32,31,32,31,30,30,30,29,29,30,31), |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<style> | |
.outer-container { |
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
<!-- <div class="flex-parent"> --> | |
<div id="box1-parent" class="box200"> | |
<div id="box1-child" class="box100"></div> | |
</div> | |
<div id="box2-parent" class="box200"> | |
<div id="box2-child" class="box100"></div> | |
</div> | |
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
class FileUploadController extends Controller | |
{ | |
public function imageUpload(Request $request) | |
{ | |
$photos = []; | |
foreach ($request->photos as $photo) { | |
$photos[] = getImageURL($photo->store('public/images')); | |
} | |
return response()->json(['files' => $photos], 200); | |
} |
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
<?php | |
/** | |
* case insensetive filter for collection | |
*/ | |
if (!function_exists('collectionFilter')) { | |
function collectionFilter($collection,$attribute,$value) | |
{ | |
return $collection->filter(function ($item) use ($attribute, $value) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Invoice</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> | |
</head> | |
<body> |
-
To ignore unstaged changes:
git commit -- .
-
To stop tracking a file or folder that was added earlier but later added to .giignore:
git rm --cached <file>
git rm -r --cached <folder>
WARNING: While this will not remove the physical file from your local, it will remove the files from other developers machines on next git pull.
OlderNewer