Skip to content

Instantly share code, notes, and snippets.

View bedus-creation's full-sized avatar
🎯
Focusing

Bedram Tamang bedus-creation

🎯
Focusing
View GitHub Profile
@bedus-creation
bedus-creation / CheckBox.vue
Created February 24, 2023 14:45 — forked from Jonarod/CheckBox.vue
Simple custom CheckBox component for Vue.js, compatible with v-model.
/**
* @usage:
*
* <CheckBox label="Foo" value="foo" v-model="MySelectedValues" />
* <CheckBox label="Bar" value="bar" v-model="MySelectedValues" />
* <CheckBox label="Baz" value="baz" v-model="MySelectedValues" />
*
* data(){
* return {
* MySelectedValues: [],
@bedus-creation
bedus-creation / readme.md
Last active April 8, 2021 03:46
Postgres Comamand

Login into postgres

sudo -u postgres psql

Create Database

create database DB_NAME;
@bedus-creation
bedus-creation / docker.md
Last active January 19, 2021 04:07
Docker & docker compose guide

Docker Compose

Command Description
docker-compose up It builds and starts the container.
docker-compose down It stops and removes the container.
<!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 href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
@bedus-creation
bedus-creation / cloudSettings
Last active January 13, 2021 01:02
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-12-27T12:07:12.690Z","extensionVersion":"v3.4.3"}
@bedus-creation
bedus-creation / .babelrc
Last active October 20, 2019 06:20
Laravel Mix V3 setup with dynamic import, tailwind, Vue, vendor extraction.
// {
// "plugins": [
// "@babel/plugin-syntax-dynamic-import"
// ]
// }
{
"plugins": [
"syntax-dynamic-import"
]
  • Debugbar not diplaying
php artisan route:cache
  • TokeMismathException
php artisan config:clear
@bedus-creation
bedus-creation / index.blade.php
Created July 2, 2019 05:19
DataTableFilters
@extends('theme.limitless4.app')
@section('head')
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
<style>
td:not(:first-child) {
text-align: center;
}
td:nth-child(6) {
@bedus-creation
bedus-creation / deploy.sh
Last active July 2, 2019 05:00
Deploy Laravel on the server
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
git pull origin master
# Install/update composer dependecies
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev
# Run database migrations
@bedus-creation
bedus-creation / DynamicItem.vue
Created June 22, 2019 07:07
Dynamic Form In vue Js
<template>
<div>
<div v-for="row in rows" :key="row.id">
<div class="form-group row">
<div class="col-6">
<input
name="keys[]"
type="text"
class="form-control"
placeholder="Enter attribute"