Skip to content

Instantly share code, notes, and snippets.


Marco tamoxin

  • Houston, Texas
View GitHub Profile
edmundojr / formspree.html
Last active Aug 10, 2020
JS: Ajax send forms using the most excellent Formspree » #snippet
View formspree.html
<form id="contact-form" action="//" method="post">
<input type="text" name="Name" placeholder="Name" required>
<input type="email" name="Email" placeholder="Email" required>
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea>
<!-- CONFIG -->
<input class="is-hidden" type="text" name="_gotcha">
<input type="hidden" name="_subject" value="Subject">
<input type="hidden" name="_cc" value="">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
kuyseng / gist:2792057
Created May 26, 2012
javascript: indesign get all files in folder
View gist:2792057
function get_folder_files(file_type, title, param_path) {
// v.0.1.2
var path = "";
if(!param_path) {
var tmp_file = File.openDialog(title, file_type);
if(!tmp_file) {exit(); };
path = tmp_file.path;
}else { path = param_path; };
var my_folder = new Folder(path);
View exportjson.js
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
You can’t perform that action at this time.