This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"prepared_by": "Zulhilmi Zainudin", | |
"last_update": "21 June 2016", | |
"data": [ | |
{ | |
"state": "Selangor", | |
"codes": [ | |
"40000", | |
"40100", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//custom-component-lazyload\src\pages\home\home.module.ts | |
import { NgModule } from '@angular/core'; | |
import { IonicPageModule } from 'ionic-angular'; | |
import { HomePage } from './home'; | |
//add this line | |
import { ComponentsModule } from '../../components/components.module'; | |
@NgModule({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- custom-component-lazyload\src\pages\home\home.html --> | |
<ion-header> | |
<ion-navbar> | |
<button ion-button icon-only start menuToggle><ion-icon name="menu"></ion-icon></button> | |
<ion-title>Home</ion-title> | |
</ion-navbar> | |
</ion-header> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//fb-bot-tutorial/routes/web.php | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// fb-bot-tutorial\app\Http\Middleware\VerifyCsrfToken.php | |
namespace App\Http\Middleware; | |
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; | |
class VerifyCsrfToken extends Middleware | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// fb-bot-tutorial/app/Http/Controllers/WebhookController.php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class WebhookController extends Controller | |
{ | |
// this will verify the Facebook Messenger with our Laravel project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// fb-bot-tutorial/app/Http/Controllers/WebhookController.php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class WebhookController extends Controller | |
{ | |
// this will verify the Facebook Messenger with our Laravel project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fb-bot-tutorial/.env | |
# add these two new field | |
HUB_VERIFY_TOKEN=some_testing_token | |
FB_TOKEN= | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fb-bot-tutorial/.env | |
# add these two new field | |
HUB_VERIFY_TOKEN=some_testing_token | |
FB_TOKEN=<token> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get -y install docker-ce | |
sudo systemctl status docker |
OlderNewer