Skip to content

Instantly share code, notes, and snippets.

View codeboyim's full-sized avatar


  • Irvine, California
View GitHub Profile
codeboyim / chain.js
Created November 29, 2015 06:43
a solution to implementing chaining
function exec(fn){
var doneCallback, failCallback, fnCallback, fnEnded=false, _error, _data;
exec.done = function(cb){
doneCallback = cb;
if(fnEnded && !_error){
return exec;
codeboyim / webpack.config.js
Last active August 29, 2015 14:08
a sample Webpack configuration to include Facebook Parse JavaScript SDK for a Web project
* @file webpack.config.js
* @author codeboy<>
* @desc this gist shows the essential sections used in configuring webpack
* to make the Facebook's Parse JavaScript SDK work as other modules as expected.
* this gist is inspired by an answer to an issue reported in webpack repo
* {@link}
* disclaimer: this configuration is correct as provided and effective on Parse 1.3.0
codeboyim / index.html
Last active September 15, 2016 09:06
Get ReactJS and Foundation.js Work Together demo:
<!DOCTYPE html>
<meta name="description" content="Get React and Foundation Work Together" />
<link href="" rel="stylesheet" type="text/css" />
<link href="" rel="stylesheet" type="text/css" />
<script src=""></script>
<script src=""></script>
<script src=""></script>
<meta charset="utf-8">
codeboyim / CSS3-Beautified-Button.html
Created January 6, 2014 12:24
A styled button made purely with cool CSS3 features, e.g. multiple border-shadow, border-radius, web font, text-shadow etc. Demo:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta charset="utf-8">
<title>CSS3-Beautified Button</title>
@import url(;
button.beautified {
codeboyim / Router.js
Last active December 27, 2015 02:19
A backbonejs Router sample
(function () {
var router = null, view = null;
$(function () {
RegisterRouter = Backbone.Router.extend({
//setup route maps
routes: {
"": "list",
"list/:key/:type": "list"