Skip to content

Instantly share code, notes, and snippets.

View shellprog's full-sized avatar
🏠
Working from home

Md Imran shellprog

🏠
Working from home
View GitHub Profile
@shellprog
shellprog / index.html
Last active April 26, 2018 18:20
Add Task
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
Add Task
</h3>
</div>
<div class="panel-body">
<form id="add_task" style="display:none;">
<input id="task_title" type="text" name="title" placeholder="Enter a task name" value=""/>
<button name="submit">Add Task</button>
@shellprog
shellprog / index.blade.php
Last active April 26, 2018 18:24
Creating Template
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>To do List</title>
 
    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
@shellprog
shellprog / Task.php
Last active April 26, 2018 18:20
Task
<?php
class Task extends Eloquent
{
protected $table = 'tasks';
}
@shellprog
shellprog / Migrate Command
Created April 26, 2018 17:58
Migrate Command
php artisan migrate
@shellprog
shellprog / CreateTasksTable.php
Last active April 26, 2018 18:28
CreateTasksTable
<?php
 
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
 
class CreateTasksTable extends Migration {
 
    public function up()
    {
        Schema::create('tasks', function(Blueprint $table)
@shellprog
shellprog / Create Migration
Created April 26, 2018 17:55
Create Migration
php artisan migrate:make create_tasks_table --table=tasks --create
@shellprog
shellprog / config.php
Last active April 26, 2018 18:26
Database Config
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'lucifier_todolist',
'username' => 'username',
'password' => 'password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
@shellprog
shellprog / Create Laravel Project
Created April 26, 2018 17:53
Create Laravel Project
composer create-project laravel/laravel todolist
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="../../css/base.css" />
<script src="../../js/jquery.js"></script>
<script src="../../js/iframe.js"></script>
<script src="../../js/iframe/comment.js"></script>
<title>Clipper</title>
<style>
body{
background-color:#2c2e3e !important;
@shellprog
shellprog / gist:0aeb63d38d84bae88d07
Last active September 14, 2015 13:40 — forked from nghuuphuoc/gist:8282411
Install wkhtmltopdf on Centos 6 x64
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
// In case you got the issue
// wkhtmltopdf: error while loading shared libraries:
// libfontconfig.so.1: cannot open shared object file: No such file or directory
//
// run the command below:
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1