Skip to content

Instantly share code, notes, and snippets.

@z3tt
z3tt / github.R
Last active July 12, 2024 13:07
Configure GitHub for Rstudio
#### 1. Sign up at GitHub.com ################################################
## If you do not have a GitHub account, sign up here:
## https://github.com/join
# ----------------------------------------------------------------------------
#### 2. Install git ##########################################################
## If you do not have git installed, please do so:
@pdparker
pdparker / image_input.gs
Last active May 26, 2020 22:11
Inserts an image from url and attaches the url to the image
// Set Globals
var ui = DocumentApp.getUi();
/** Demonstrates a simple way to prompt the user for a date. */
function img_workflow() {
// Set UI prompt + reminder to use unsecured image
var url = ui.prompt('Enter URL of image', 'use http not https', ui.ButtonSet.OK_CANCEL);
var line = url.getResponseText();
// If user clicks OK
if (url.getSelectedButton() == ui.Button.OK) {
// fetch image url
@pdparker
pdparker / UpdateImage.gs
Last active May 26, 2020 23:48
Update Images by URL
/**
* Updates images by there URL. Run when image changes
* This only works for images that have a link to themselves in a google doc
* To link an image right mouse click and select link. Put a link to the image URL there
* URLs for images in Drive take the form http://drive.google.com/uc?export=view&id=##IMAGE ID HERE##
* Will replace image with same dimensions. Will not match rotation angle.
* I think the URLs need to be http rather than https to work consistently.
*/
function replace_images_url() {
// Open the document by id
@hootlex
hootlex / laravellocal.md
Last active June 26, 2024 08:56
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci