Skip to content

Instantly share code, notes, and snippets.

@dimcoderx
dimcoderx / index.html
Created November 21, 2019 21:30 — forked from taniarascia/index.html
HTML Skeleton file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@dimcoderx
dimcoderx / Google-Sheet-Form-Post.md
Created September 11, 2017 16:21 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form

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

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 August 10, 2017 10:24 — forked from MicBrain/metatags.html
The list of useful meta tags used in HTML5 documents.
<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 August 10, 2017 10:24 — forked from MicBrain/structure.html
The standard HTML5 page structure.
<!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>
@dimcoderx
dimcoderx / gist:c3db3c6a65995e7f31b3349f866abf9f
Created August 10, 2017 08:58 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

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