Shiffman Youtube Processing4 sketches Gists
This file contains hidden or 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
public class App{ | |
//test | |
public static void main(String[] args) { | |
Machine machine1 = new Machine(); | |
machine1.start(); | |
Person person1 = new Person("Lily"); | |
person1.greet(); |
Managing Gists Locally
by Danny Quah, May 2020
Through the Embed instruction or plugin, Gist snippets on GitHub can conveniently provide posts on Medium, WordPress, and elsewhere supplementary information (lines of code, images, Markdown-created tables, and so on). But while Gist snippets on GitHub can be managed directly via browser or through something like [Gisto][], a user might also wish to manipulate them offline. This last is for many of the same reasons that a user seeks to clone a git repo to their local filesystem, modify it locally, and then only subsequently push changes back up to GitHub.
Here's how to do this:
Create the gist on GitHub and then clone it to your local filesystem:
This file contains hidden or 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
function onOpen() { /* this function will run when Google Sheets (Gsh) loads, it is a trigger to allow us to add a menu to the Gsh UI */ | |
const ui = SpreadsheetApp.getUi(); /* returns an instance of the Gsh UI that we can use to add a menu to our Gsh UI */ | |
const menu = ui.createMenu('AutoFill Docs'); /* creates the 'Autofill Docs' menu label */ | |
menu.addItem('Create new docs','createNewGoogleDocs'); /* creates the 'Create new docs' menu item */ | |
menu.addToUi(); /* adds the menu and the menu label to Gsh UI */ | |
} | |
function createNewGoogleDocs() { /* will loop through the Gsh rows and generate a new Gdoc if the Document Link Column is empty */ | |
const googleDocTemplate = DriveApp.getFileById('1UPn9oGcibQ-17fFSVHncGHpS4-8d-Nk_c_Nj-mhk34o'); /* get the spreadsheet Id */ | |
const destinationFolder = DriveApp.getFolderById('1mXE3 |
This file contains hidden or 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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.mysql', | |
'NAME': 'firstsql_db', | |
'USER': 'root', | |
'PASSWORD': '', | |
'HOST':'127.0.0.1', | |
'PORT':'3306', | |
'OPTIONS': { | |
'autocommit': True, |