Skip to content

Instantly share code, notes, and snippets.

Avatar

Bunlong Heng bunlongheng

View GitHub Profile
@bunlongheng
bunlongheng / mp-timeline.less
Created Jun 30, 2015
Timeline UI, Sprites, and Mixin
View mp-timeline.less
@import '../bi.less';
/*==============================
= Header =
==============================*/
.mp-header{
margin-bottom : 23px;
padding-left : 28px;
@bunlongheng
bunlongheng / .bash_profile
Created Jul 1, 2015
My favorite .bash_profile
View .bash_profile
#================================================
# Bunlong Heng 4/23/2015 =
#================================================
#Environment Variables
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=~/.composer/vendor/bin:$PATH
View modal.php
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-btns">
<a href="" class="panel-close">×</a>
<a href="" class="minimize">−</a>
</div><!-- panel-btns -->
<h3 class="panel-title">Web Policy</h3>
<p>Create / Read / Update / Delete</p>
</div>
<div class="panel-body">
View datatable.php
<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>
View FacebookController.php
<?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(){
View FacebookRoute.php
/*================================
= 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');
View accounts.py
# Last updated : BH | 5/17/2016
import requests
import json
import os
import random
import re
import emoji
import sys
import math
View ssc.py
#! /usr/bin/env python
import ipaddress
import netaddr
import requests
import sys
class MDU_SSC(TestCase):
'''
@bunlongheng
bunlongheng / Fortinet.php
Created Mar 6, 2018
Fortinet Model API between the portal
View Fortinet.php
<?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';
View fe.master.blade.php
<!doctype html>
<html>
<head>
@include('layouts.fe.meta')
@include('layouts.fe.links')
</head>