Skip to content

Instantly share code, notes, and snippets.

joydesigner joydesigner

Block or report user

Report or block joydesigner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
joydesigner /
Created Jan 14, 2016 — forked from lsiv568/
This directive uses the HTML5 drag and drop spec as well as the FileReader to base64 encode the dropped files. This allows for easy client/server transfer via REST protocol.
'use strict';
.directive('fileDropzone', () ->
restrict: 'A'
scope: {
file: '='
fileName: '='
link: (scope, element, attrs) ->
// Word cloud layout by Jason Davies,
// Algorithm due to Jonathan Feinberg,
(function(exports) {
function cloud() {
var size = [256, 256],
text = cloudText,
font = cloudFont,
fontSize = cloudFontSize,
rotate = cloudRotate,
padding = cloudPadding,
You can’t perform that action at this time.