Skip to content

Instantly share code, notes, and snippets.

View bunlongheng's full-sized avatar
💭
🍔 Eat. 🛌 Sleep. 💻 Code --> ☕️🧑🏻‍💻

Bunlong Heng bunlongheng

💭
🍔 Eat. 🛌 Sleep. 💻 Code --> ☕️🧑🏻‍💻
View GitHub Profile
@extends('layouts.internal.master')
@section('content')
<style type="text/css">
.btn-js{
display: none;
}
</style>
<script type="text/javascript">
//Edit Mode
$('body').on('click', '.account-edit', function () {
var id = $(this).data("id");
console.log(id);
//Declare Variables
@bunlongheng
bunlongheng / skills.index.blade.php
Last active May 2, 2018 21:38
Blade with Angular Integration
@extends('layouts.be.master')
@section('content')
<script type="text/javascript">
myApp.directive('myEnter', function () {
return function (scope, element, attrs) {
element.bind("keydown keypress", function (event) {
@bunlongheng
bunlongheng / fe.master.blade.php
Created March 20, 2017 20:42
Front End Master
<!doctype html>
<html>
<head>
@include('layouts.fe.meta')
@include('layouts.fe.links')
</head>
@bunlongheng
bunlongheng / Fortinet.php
Created March 6, 2018 19:33
Fortinet Model API between the portal
<?php
namespace App\Models;
use App\CURL;
use Redirect;
use Session;
//SSC.cfg
$GLOBALS['FG_API'] = 'http://172.18.58.25/jsonrpc';
$GLOBALS['PKG_NAME'] = 'CARWASH_PKG_VPN';
#! /usr/bin/env python
import ipaddress
import netaddr
import requests
import sys
class MDU_SSC(TestCase):
'''
# Last updated : BH | 5/17/2016
import requests
import json
import os
import random
import re
import emoji
import sys
import math
/*================================
= Facebook =
================================*/
Route::get('/facebook/callback', 'FacebookController@callback');
Route::get('/facebook/link', 'FacebookController@link');
Route::post('/facebook/activate', 'FacebookController@activate');
Route::get('/facebook/page/feed', 'FacebookController@pageFeed');
<?php
namespace App\Http\Controllers;
use Validator, Input, Auth, Redirect, Request, JavaScript, DateTime, Session, DB;
use App\VSE, App\Helper, App, App\Token, App\CURLexec, App\User;
class FacebookController extends Controller {
public function getToken(){
<table class="table table-bordered mb30" id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>