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
'use strict';
define(['jquery', 'moment'], function($, moment) {
$(function() {
// Teacher Report
var report_type_car = $('#as-report-type-car');
var report_type_cdr = $('#as-report-type-cdr');
var report_type_title = $('#as-report-type-title');
@bunlongheng
bunlongheng / mp-timeline.less
Created June 30, 2015 18:22
Timeline UI, Sprites, and Mixin
@import '../bi.less';
/*==============================
= Header =
==============================*/
.mp-header{
margin-bottom : 23px;
padding-left : 28px;
'use strict';
define(['jquery'], function($) {
$(function() {
/*=================================
= Variables =
=================================*/
@bunlongheng
bunlongheng / Gruntfile.js
Last active March 1, 2019 18:52
I used this build system for my site : www.bunlongheng.com
/*
Grunt installation:
-------------------
npm install -g grunt-cli
npm install -g grunt-init
npm init (creates a `package.json` file)
Project Dependencies:
---------------------
#!/bin/bash
function check_compression {
curl -I -H 'Accept-Encoding: gzip,deflate' $1 |grep "Content-Encoding"
}
check_compression http://www.bunlongheng.com/ ;
@bunlongheng
bunlongheng / .bash_profile
Created July 1, 2015 12:53
My favorite .bash_profile
#================================================
# Bunlong Heng 4/23/2015 =
#================================================
#Environment Variables
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=~/.composer/vendor/bin:$PATH
@bunlongheng
bunlongheng / rank.php
Last active March 1, 2019 18:54
10/1/2015
function containsKey($key_para, $array)
{
foreach ($array as $key => $value) {
if ($key_para === $key) {
return true;
}
}
return false;
}
@bunlongheng
bunlongheng / modal.php
Created January 28, 2016 17:10
1/28/2016
<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">
<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>
<?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(){