Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Getting Dropzone back on track

Matias Meno enyo

🤓
Getting Dropzone back on track
View GitHub Profile
View v5.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
View v4.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
View dropzone-with-iterator.v3.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
View dropzone-with-iterator.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
View jquery-dropzone.html
<!-- HTML heavily inspired by http://blueimp.github.io/jQuery-File-Upload/ -->
<div class="table table-striped" class="files" id="previews">
<div id="template" class="file-row">
<!-- This is used as the file preview template -->
<div>
<span class="preview"><img data-dz-thumbnail /></span>
</div>
<div>
<p class="name" data-dz-name></p>
View main.dart
import 'dart:async';
Future foo() async {
print('foo() before delay');
await Future.delayed(Duration(milliseconds: 100));
print('foo() after delay');
}
void main() async {
View CheckboxListItemView.js
// ==========================================================================
// Project: Inc.CheckboxListItemView
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Inc */
/** @class
(Document Your View Here)
@enyo
enyo / package.json
Created Jan 5, 2014
gulp package.json
View package.json
{
"name": "project-tools"
, "version": "0.0.1-dev"
, "private": true
, "devDependencies": {
"gulp": "*",
"gulp-myth": "*"
}
}
@enyo
enyo / changelog.sh
Created Jul 3, 2013
Print changelog to use for Github releases. (Goes through all commits, and shows the one with a #changelog hashtag)
View changelog.sh
#!/bin/bash
#echo git log $1...$2 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit &bull;</a> %s</li> ' --reverse | grep "#changelog"
firstTag=$(git tag | tail -2 | head -1)
secondTag=$(git tag | tail -1)
cmd=$(basename $0)
if [ "$1" == "-h" ]
then
@enyo
enyo / preloader.js
Last active Dec 18, 2015
Preloading images with jQuery
View preloader.js
/**
* Preloads the image, and invokes the callback as soon
* as the image is loaded.
*/
var preload = function(src, callback) {
// Create a temporary image.
var img = new Image();
// Invoke the callback as soon as the image is loaded
// Has to be set **before** the .src attribute. Otherwise