Skip to content

Instantly share code, notes, and snippets.

View talha08's full-sized avatar
πŸ‘¨β€πŸ’»
Easy Life, Busy Day

Md Abu Talha talha08

πŸ‘¨β€πŸ’»
Easy Life, Busy Day
View GitHub Profile
....................................
Html
....................................
<button class="badge1" data-badge="6">Badge Notification Example</button>
<br>
<a href="" class="badge1" data-badge="27">Badge Notification Example</a>
....................................
CSS
@talha08
talha08 / a--route.php
Last active May 31, 2017 16:20
Loading Jquery
Route::get('my-post', 'PostController@myPost');
<?php
$ch = curl_init("your-web-site");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$page = curl_exec($ch);
$dom = new DOMDocument();
libxml_use_internal_errors(true);
$dom->loadHTML($page);
Chapter 4 problem :
def computepay(hh,r):
if hh> 40:
h =float(hh)
ex = h- 40
p = ex * 1.5
c = h - ex
k = c + p
m = k * float(r)
URl:: https://disqus.com/
//script
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
*/
/*
https://www.spot.im/
//use in scripr
<script type="text/javascript">!function(t,e,n){function a(t){var a=e.createElement("script");a.type="text/javascript",a.async=!1,a.src=("https:"===e.location.protocol?"https":"http")+":"+n,(t||e.body||e.head).appendChild(a)}function o(){var t=e.getElementsByTagName("script"),n=t[t.length-1];return n.parentNode} var p=o();t.spotId="sp_hrLZW7d1",t.parentElement=p,a(p)}(window.SPOTIM={},document,"//www.spot.im/launcher/bundle.js");</script>
//use in body
<div class="comments-container ">
<div class="spot-im-frame-inpage" data-post-id="{!! $journal->id !!}"></div>
</div>
@talha08
talha08 / heroku.txt
Created January 20, 2017 17:01
Heroku Deploy
git init
git add .
git commit -m "laravel on heroku"
git status
echo web: vendor/bin/heroku-php-apache2 public/ > Procfile
git status
git add .
git commit -m "profile commit"
heroku create inspinia
heroku buildpacks:set heroku/php
Command line:
gem install mysql2
rake db:schema:dump //generate db/schema.rb
rake db:create //create database
rake db:schema:load // load schema
rake db:migrate //migrate
rake db:seed //seed
Pretty Routes:
https://github.com/garygreen/pretty-routes
Laravel Charting Package:
https://laravel-news.com/laravel-charts
Laravel Missing Page Redirector Package:
https://laravel-news.com/missing-pages-redirector
Laravel Countries and Currencies Package:
@talha08
talha08 / mongodb-setup.sh
Created March 17, 2017 22:49 — forked from meSingh/mongodb-setup.sh
MongoDB Setup on Ubuntu 14.04 with PHP7
#!/bin/bash
# MongoDB Setup on Ubuntu 14.04 with PHP7
# Source:
#1. Import the public key used by the package management system:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
#2. Create a list file for MongoDB.
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list