Skip to content

Instantly share code, notes, and snippets.

View trungx's full-sized avatar
🚩
Go to 2022

trungx

🚩
Go to 2022
View GitHub Profile
@trungx
trungx / animation-to-explain-css-triangles.markdown
Created October 26, 2017 09:07
Animation to Explain CSS Triangles
body {
background: black;
color: #d5d4d4;
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
margin: 0;
overflow-x: auto;
padding: 30px;
}
table {
@trungx
trungx / App\Exceptions\Handler.php
Created March 20, 2018 04:14 — forked from jacurtis/App\Exceptions\Handler.php
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {
$whoops = new \Whoops\Run;
@trungx
trungx / tree.json
Created March 23, 2018 04:26
hanh chinh vn
This file has been truncated, but you can view the full file.
{
"89": {
"name": "An Giang",
"slug": "an-giang",
"type": "tinh",
"name_with_type": "Tỉnh An Giang",
"code": "89",
"quan-huyen": {
"883": {
"name": "Long Xuyên",
@trungx
trungx / pushsource.sh
Created March 24, 2018 06:20
pushcode urgently!
git add . && git commit -am "update" && git push origin master
@trungx
trungx / heroku_to_github.txt
Created March 24, 2018 09:53 — forked from alterisian/heroku_to_github.txt
How to git your existing heroku app into a new github repo
git remote add github [EMAIL PROTECTED]:myaccount/myapp.git
git remote add heroku [EMAIL PROTECTED]:myapp.git
Then you can do “git push heroku” and “git push github”, or pull, or
From: http://blog.mindtonic.net/using-github-and-heroku-together
{
"id": 1,
"name": "A green door",
"price": 12.50,
"tags": ["home", "green"]
}
This file has been truncated, but you can view the full file.
INSERT INTO `regions`(`id`, `parent_id`, `ancestor_id`, `order`, `visibility`, `title`, `type`, `full_title`, `code`, `slug`, `short_description`, `filename`, `page_image`, `description`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, NULL, NULL, NULL, 1, 'An Giang', 'tinh', 'Tỉnh An Giang', '89', 'tinh-an-giang', NULL, NULL, NULL, NULL, NULL, '2018-03-23 13:19:54', '2018-03-23 13:19:54');
INSERT INTO `regions`(`id`, `parent_id`, `ancestor_id`, `order`, `visibility`, `title`, `type`, `full_title`, `code`, `slug`, `short_description`, `filename`, `page_image`, `description`, `deleted_at`, `created_at`, `updated_at`) VALUES (2, 1, 1, NULL, 1, 'Long Xuyên', 'thanh-pho', 'Thành phố Long Xuyên', '883', 'thanh-pho-long-xuyen-883', NULL, NULL, NULL, NULL, NULL, '2018-03-23 13:19:54', '2018-03-23 13:19:54');
INSERT INTO `regions`(`id`, `parent_id`, `ancestor_id`, `order`, `visibility`, `title`, `type`, `full_title`, `code`, `slug`, `short_description`, `filename`, `page_image`, `description`, `deleted_at`, `cre
@echo off
title Activate Microsoft Office 2016 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2016&echo - Microsoft Office Professional Plus 2016&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&ech
<?php
ini_set('error_reporting', E_ALL);
namespace Vendor\Package;
/*
|--------------------------------------------------------------------------
| DOCUMENT LEVEL COMMENT BLOCK
|--------------------------------------------------------------------------