Skip to content

Instantly share code, notes, and snippets.

View illusionfield's full-sized avatar

IF illusionfield

View GitHub Profile
// Get the template HTML and remove it from the doumenthe template HTML and remove it from the doument
var previewNode = document.querySelector("#template");
previewNode.id = "";
var previewTemplate = previewNode.parentNode.innerHTML;
previewNode.parentNode.removeChild(previewNode);
var myDropzone = new Dropzone(document.body, { // Make the whole body a dropzone
url: "/target-url", // Set the url
thumbnailWidth: 80,
thumbnailHeight: 80,
@illusionfield
illusionfield / bookmarklet-syntax.js
Last active August 12, 2024 19:28
Translate Bookmarklets
/**
* Web browsers use URIs for the href attribute of the <a> tag and for bookmarks. The URI scheme, such as http:, file:, or ftp:, specifies the protocol and the format for the rest of the string.
* Browsers also implement a prefix javascript: that to a parser is just like any other URI.
* Internally, the browser sees that the specified protocol is javascript, treats the rest of the string as a JavaScript application which is then executed, and uses the resulting string as the new page.
*
* The executing script has access to the current page, which it may inspect and change.
* If the script returns an undefined type (rather than, for example, a string), the browser will not load a new page, with the result that the script simply runs against the current page content.
* This permits changes such as in-place font size and color changes without a page reload.
*/
@illusionfield
illusionfield / bower.json
Last active August 29, 2015 14:19
Meteor bower error
{
"name": "App",
"version": "0.0.1",
"private": "true",
"dependencies": {
"foundation": "*",
"lodash": "master",
"modernizr": "*",
"microplugin": "*",
"underscore.string": "master",
Package.describe({
summary: "SASS for meteor",
version: "2.0.1_1",
name: "particle4dev:sass",
git: "https://github.com/particle4dev/meteor-sass.git"
});
Package.onUse(function (api) {
api.versionsFrom('[email protected]');
});
@illusionfield
illusionfield / bower.json
Created March 12, 2015 20:10
extend overrides meteor-bower
{
"name": "App",
"version": "0.0.1",
"private": "true",
"dependencies": {
"foundation": "zurb/bower-foundation#master",
"foundation-icon-fonts": "master",
"lodash": "master",
"modernizr": "*",
"microplugin": "*",

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false