Navigation Menu

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
@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>
<!DOCTYPE html>
<!--[if IE 9 ]><html class="ie9"><![endif]-->
<head>
@include('layouts.be.meta')
@include('layouts.be.links')
</head>
<body>
@bunlongheng
bunlongheng / ImageController.php
Last active March 1, 2019 18:52
Sample Laravel CRUD Controller
<?php
namespace App\Http\Controllers;
use App\ImageWork;
use Input, Validator, Auth, Redirect, Request, Session, Mail, View, File, Image, SSH;
class ImageController extends Controller {
//------------------------------------------------------------------------------------------------- [ Index ]
@bunlongheng
bunlongheng / SkillController.php
Last active March 1, 2019 18:53
Sample Laravel + Angular CRUD Controller
<?php
namespace App\Http\Controllers;
use App\Skill;
use Input, Validator, Auth, Redirect, Request, Session, Mail, View, Image;
class SkillController extends Controller {
//------------------------------------------------------------------------------------------------- [ all ]
@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) {
import os
print ("______________\n")
print " 1.GET "
print " 2.POST "
print " 3.PUT "
print " 4.DELETE "
print ("______________\n")
<script type="text/javascript">
//Edit Mode
$('body').on('click', '.account-edit', function () {
var id = $(this).data("id");
console.log(id);
//Declare Variables
#! /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
<div class="table-responsive" style="margin-bottom: 0;">
<table class="table" id="account-table">
<thead>
<tr>
<th>#</th>
<th>Account ID</th>
<th>Customer Type</th>
<th>Name</th>
<th>Email</th>