#Adding an existing project to GitHub using the command line
Simple steps to add existing project to Github.
In Terminal, change the current working directory to your local project.
##2. Initialize the local directory as a Git repository.
git init
| /* | |
| * Copyright 2017 Mohsen Mesgarpour | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| ############################################################################################ | |
| ############################################################################################ | |
| # Plotting networks in R - an example how to plot a network and | |
| # customize its appearance using networkD3 library | |
| ############################################################################################ | |
| ############################################################################################ | |
| # Clear workspace | |
| # rm(list = ls()) | |
| ############################################################################################ |
| import multiprocessing | |
| from multiprocessing.dummy import Pool as ThreadPool | |
| import numpy as np | |
| def my_multipro(items, func, max_cpus=12): | |
| """Do an embarrassingly parallel task using multiprocessing. | |
| Use this for CPU bound tasks. |
This is a sample script for uploading local file to Google Drive without the authorization using HTML form. A selected file in your local PC using HTML form is uploaded to Google Drive and saved to Google Drive.
When you use this, at first, please deploy Web Apps. The script is doPost() of following scripts.
function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data);This is a sample script for replacing text to image for Google Document using Google Apps Script (GAS). There is a method for replacing text to text at Class Text of DocumentApp. But there are not methods for replacing text to image. So I created this sample script.
This sample image was created by k3-studio.