Skip to content

Instantly share code, notes, and snippets.

dimcoderx

Block or report user

Report or block dimcoderx

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
@dimcoderx
dimcoderx / Google-Sheet-Form-Post.md
Created Sep 11, 2017 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form
View Google-Sheet-Form-Post.md

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Run example

You should be able to just open index.html in your browser and test locally.

However if there are some permissions errors you can make a quick html server with python. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer. By default this creates a local server at localhost:8000

View google_script_form_ajax.js
var $form = $('form#test-form'),
url = 'https://script.google.com/macros/s/abcdefghijklmnopqrstuvwxyz1234567890/exec'
$('#submit-form').on('click', function(e) {
e.preventDefault();
var jqxhr = $.ajax({
url: url,
method: "GET",
dataType: "json",
data: $form.serializeObject()
@dimcoderx
dimcoderx / metatags.html
Created Aug 10, 2017 — forked from MicBrain/metatags.html
The list of useful meta tags used in HTML5 documents.
View metatags.html
<html>
<head>
<!--Recommended Meta Tags-->
<meta charset="utf-8">
<meta name="language" content="english">
<meta http-equiv="content-type" content="text/html">
<meta name="author" content=”Rafayel Mkrtchyan”>
<meta name="designer" content=”Rafayel Mkrtchyan”>
<meta name="publisher" content=”Rafayel Mkrtchyan”>
@dimcoderx
dimcoderx / structure.html
Created Aug 10, 2017 — forked from MicBrain/structure.html
The standard HTML5 page structure.
View structure.html
<!DOCTYPE HTML>
<html>
<head>
<!--To get more Meta Tags visit here: https://gist.github.com/MicBrain/46a9723158307fd30db66a4b2af85411 -->
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html">
<title> The name of your website. </title>
View gist:c3db3c6a65995e7f31b3349f866abf9f

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
You can’t perform that action at this time.