Skip to content

Instantly share code, notes, and snippets.

View nch3ng's full-sized avatar

Nate C. nch3ng

View GitHub Profile
@nch3ng
nch3ng / Angular floating blocks, random color, random shape.markdown
Created August 3, 2015 22:06
Angular floating blocks, random color, random shape
@nch3ng
nch3ng / Angular Material Design Header, Ripple Button, and Toggle Sidebar.markdown
Created August 3, 2015 22:07
Angular Material Design Header, Ripple Button, and Toggle Sidebar

Angular Material Design Header, Ripple Button, and Toggle Sidebar

Angular Material Design Header, Ripple Button, and Toggled Sidebar

A Pen by Nate Cheng on CodePen.

License.

@nch3ng
nch3ng / index.html
Created August 3, 2015 22:15
infinite tree of life
<canvas id="canvas"></canvas>
<div id="text">
<div id="clic" nowrap>infinite tree of life<br>this pen is mouse/touch interactive!</div>
</div>
@nch3ng
nch3ng / Mega Dropdown for Surveyors.markdown
Created August 6, 2015 21:47
Mega Dropdown for Surveyors
@nch3ng
nch3ng / AngularJS Draggable & Droppable Directive.markdown
Created August 17, 2015 22:06
AngularJS Draggable & Droppable Directive

AngularJS Draggable & Droppable Directive

An Angular directive to create draggable & droppable objects, using jQuery UI, with the ability to change the template dynamically, group draggable objects and transclude the directive's enclosed information as content; as well communicate this content to the parent controller; and place the correct content in the droppable.

A Pen by Michael E Conroy on CodePen.

License.

@nch3ng
nch3ng / Froala and Carrierwave-RoR Demo.html
Last active April 10, 2019 05:16
Image upload with Froala and Rails 4, Carrierwave, Fog AWS
...
...
<textarea froala="froalaOptions"></textarea>
...
...
@nch3ng
nch3ng / .bashrc
Created January 1, 2016 21:24
my fancy prompt for cloud9 IDE Ruby on Rails environment
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
. /etc/apache2/envvars
# If not running interactively, don't do anything else
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
@nch3ng
nch3ng / ultimate-ut-cheat-sheet.md
Created December 15, 2017 04:47 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@nch3ng
nch3ng / git color, and language
Created May 28, 2018 21:18
color prompt of the git status and also detect what the project is
ruby_version=`~/.rvm/bin/rvm-prompt v`
node_version=`/usr/local/bin/node -v`
NONE="\[\033[0m\]" # unsets color to term's fg color
# regular colors
K="\[\033[0;30m\]" # black
R="\[\033[0;31m\]" # red
G="\[\033[0;32m\]" # green
Y="\[\033[0;33m\]" # yellow