Skip to content

Instantly share code, notes, and snippets.

View tisuchi's full-sized avatar
🙂
Smile is Sadaqah (righteousness)

Thouhedul Islam tisuchi

🙂
Smile is Sadaqah (righteousness)
View GitHub Profile
@tisuchi
tisuchi / laravel-fetch-results-grouped-days-way-1
Created June 30, 2017 07:07
Laravel fetch results grouped by days // larademy.com
$users =DB::table('users')
->select(DB::raw('DATE(created_at) as date'), DB::raw('count(*) as views'))
->groupBy('date')
->get();
@tisuchi
tisuchi / select-whole-text.html
Created June 3, 2017 16:41
Sublime text workflow for everyday
<div>
This is my whole text that I need to select by keyboard in a easy way.
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> VueJs transition for loading data - larademy.com</title>
</head>
<body>
<div id="app">
@tisuchi
tisuchi / belongs-to-many.sublime-snippet
Created March 23, 2016 09:03 — forked from adamwathan/belongs-to-many.sublime-snippet
Eloquent Relationship snippets for Sublime Text
<snippet>
<content><![CDATA[
public function ${1:relationship}()
{
return \$this->belongsToMany(${1/^(.+)$/(?1\u$1:)/g}::class, {$2:table});
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>belt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->