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
#Install Gource in Ubuntu | |
======================== | |
#Go to the folder.... and | |
#see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev | |
./configure | |
make | |
sudo make install |
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
// 34567890123456789012345678901234567890123456789012345678901234567890123456789 | |
// JSHint: 22 March 2015 08:56 GMT | |
// Unit Tests: 22 March 2015 08:50 GMT | |
/* | |
* Copyright (C) 2015-2017 Andrew Roberts (andrew@roberts.net) | |
* | |
* This program is free software: you can redistribute it and/or modify it under | |
* the terms of the GNU General Public License as published by the Free Software |
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
/** | |
* Labels Gmail email threads | |
*/ | |
function labelGithubEmails() { | |
/** | |
* Gmail label names for GitHub messages | |
*/ | |
const githubLabelName = 'GitHub' | |
const githubPullRequestLabelName = 'GitHub/Pull Request' | |
const githubIssueLabelName = 'GitHub/Issue' |
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
// Port of Slides API demo by Wesley Chun to Google Apps Script | |
// Source: http://wescpy.blogspot.co.uk/2016/11/using-google-slides-api-with-python.html | |
function slides_template() { | |
/* | |
from apiclient import discovery | |
from httplib2 import Http | |
from oauth2client import file, client, tools | |
*/ | |
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
/** | |
* Function to replace text in Google Slides with Google Sheet values | |
* @reference https://hudsonatwell.co/2020/10/03/how-to-use-google-slides-to-autogenerate-featured-images/ | |
*/ | |
function generate_featured_image() { | |
/* get spreadsheet from public view link */ | |
var dataSpreadsheetUrl = "https://docs.google.com/spreadsheets/d/1necmbNPUsGJ3fwNiFpgNLbtH6c2RmJDwIQCPuhAfA7s/edit"; //make sure this includes the '/edit at the end | |
var ss = SpreadsheetApp.openByUrl(dataSpreadsheetUrl); | |
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
//load configuration details and start logging - creates and sets up sheets the first time they are run | |
var CONFIG_SPREADSHEET_KEY = '<ssid_goes_here>'; | |
var Config = SettingsManager.load(CONFIG_SPREADSHEET_KEY); //Add Mafviu9bMfg9xVu21LGfpWnHAGDwXQ1CH in Resources > Libraries | |
Logger = BetterLog.useSpreadsheet(Config['logSpreadsheetId'].value);//Add MYB7yzedMbnJaMKECt6Sm7FLDhaBgl_dE in Resources > Libraries | |
// trigger this function | |
function outerLoop() { | |
try { | |
// to calc elapsed time | |
var isOverMaxRuntime = false, |
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
// ==UserScript== | |
// @name detect-patterns | |
// @namespace anbt | |
// @include * | |
// ==/UserScript== | |
(function(){ | |
if (window != unsafeWindow.top) { return; } | |
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
<!-- | |
After implementing this contact form make sure | |
1. you have defined "email: youremail@email.com" in _config.yml file. | |
2. you verify your form on formspree.io. | |
--> | |
<form class="wj-contact" action="https://formspree.io/{{site.email}}" method="POST"> | |
<input type="text" name="email" placeholder="Email Address"> | |
<textarea type="text" name="content" rows="10" placeholder="Message"></textarea> | |
<input type="hidden" name="_next" value="<REDIRECTION LINK> "> |
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
function getGeocodingRegion() { | |
return PropertiesService.getDocumentProperties().getProperty('GEOCODING_REGION') || 'au'; | |
} | |
function addressToPosition() { | |
// Select a cell with an address and two blank spaces after it | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var cells = sheet.getActiveRange(); | |
var addressColumn = 1; |
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
/** | |
* Heads to github fetches milestone info, and adds rows to spreadsheet | |
*/ | |
function updateBugCounts() { | |
var resp = UrlFetchApp.fetch("https://api.github.com/repos/DramaFever/www/milestones?access_token=XXX"); | |
var jsonStr = resp.getContentText(); | |
var milestones = Utilities.jsonParse(jsonStr); | |
var dataSs = SpreadsheetApp.openById("YYY"); | |
var sheet = dataSs.getSheetByName('Raw Data'); |
NewerOlder