This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import graphviz as gv | |
g1 = gv.Graph(format='svg') | |
g1.node('A') | |
g1.node('B') | |
g1.edge('A', 'B') | |
print(g1.source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Matthias Eisen (http://www.matthiaseisen.com) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- You are probably already familiar with the possibility of hosting static websites on Amazon S3. | |
If not you should read this great tutorial by Chad Thompson: http://chadthompson.me/2013/05/06/static-web-hosting-with-amazon-s3/. | |
One common problem is that while being static your website still needs a contact form. | |
Here's a solution for this problem using Newman API (http://www.newmanapi.com). --> | |
<html> | |
<body> | |
<!-- First we set the 'action' attribute of <form> to point to Newman API --> | |
<form method="post" action="http://submit.newmanapi.com/" > | |
<!-- Now we create our input elements as we would in any other form --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script uses the underscoreGS library: https://sites.google.com/site/scriptsexamples/custom-methods/underscoregs | |
var MONTHS = [ ContactsApp.Month.JANUARY, | |
ContactsApp.Month.FEBRUARY, | |
ContactsApp.Month.MARCH, | |
ContactsApp.Month.APRIL, | |
ContactsApp.Month.MAY, | |
ContactsApp.Month.JUNE, | |
ContactsApp.Month.JULY, | |
ContactsApp.Month.AUGUST, |