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
<!-- | |
Author : Maniruzzaman Akash | |
Email : manirujjamanakash@gmail.com | |
--> | |
<!--To Work with icons--> | |
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
<div class="container"> | |
<h2 class="text-center">Bootstrap 4 User Rating Form / Comment Form</h2> |
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 GravatarHelper | |
{ | |
/** | |
* validate_gravatar | |
* |
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 | |
// API's | |
Route::get('posts', 'PostController@index'); | |
Route::get('posts/{id}', 'PostController@show'); | |
Route::get('posts/search/{text}', 'PostController@search'); | |
Route::post('posts/store/now', 'PostController@store'); | |
Route::put('posts/{id}', 'PostController@update'); | |
Route::delete('posts/{id}', 'PostController@destroy'); | |
?> |
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
<!------------- Blade Layout -----------> | |
@extends('layouts.app') | |
@section('content') | |
<div class="container"> | |
<test-component></test-component> | |
</div> | |
@endsection | |
<!-- Register Component --> |
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 React, { Component } from 'react'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props){ | |
super(props); | |
this.state = { | |
title: 'React Simple Todo App', | |
act: 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
/********** Like.vue **********/ | |
<template> | |
<div class="like mt-3" v-cloak> | |
<span class="badge badge-primary">{{ like.length }} Like</span> | |
<span class="badge badge-danger">{{ unlike.length }} Unlike</span> | |
<span class="float-right" v-if="user"> | |
<button class="btn btn-primary" @click="likePost" v-if="canLike"><i class="fa fa-fw fa-thumbs-up" title="Like This Tutorial"></i></button> | |
<button class="btn btn-danger" @click="unlikePost" v-if="canUnlike"><i class="fa fa-fw fa-thumbs-down" title="Ublike This Tutorial"></i></button> | |
</span> | |
</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
<html> | |
<head> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<script src="https://d3js.org/d3.v5.min.js"></script> | |
</head> | |
<body> | |
<div class="container"> | |
<h4 class="text-center"> | |
Testing D3 |
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 | |
class GenerateURLHelper | |
{ | |
/** | |
* getValidUrlsFrompage() function | |
* | |
* @param string $url | |
* @return array |
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
# Sales values of top 7 days | |
SELECT COUNT(id), created_at from transaction_sell_lines | |
WHERE product_id = 12601 | |
GROUP BY LEFT(created_at, 10) | |
ORDER BY count(id) DESC | |
LIMIT 7 |
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
SELECT created_at, COUNT(created_at) | |
FROM `transactions` | |
WHERE type='opening_stock' | |
GROUP BY created_at | |
HAVING COUNT(created_at) > 1 |