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
cd /my/workspace | |
mkdir project && cd project | |
git init | |
git remote add live ssh://user@mydomain.com/var/repo/site.git | |
git add . | |
git commit -m "My project is ready" | |
git push live master |
-
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.
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> |
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
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
<!-- <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
<!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
<?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), |
A Pen by Soumyajit Nayak on CodePen.
NewerOlder