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
/* | |
Display only N models via CSS modification | |
https://cults3d.com/en/users/printminion/3d-models | |
In order to create screenshot for yearly overview | |
Injected via: https://chromewebstore.google.com/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld | |
Follow me on https://twitter.com/printminion | |
Buy me a coffee https://www.buymeacoffee.com/printminion | |
*/ | |
body.body--top_bar { |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
@desc Compare two Goolge Tag Manager containers | |
@author Misha M.-Kupriyanov https://google.com/+MishaMKupriyanov | |
@link https://gist.github.com/printminion/9cae259c6c7220ea1540 | |
""" | |
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
/** | |
* @desc This is an Google Apps Script for getting column number by column name | |
* @author Misha M.-Kupriyanov https://plus.google.com/104512463398531242371/ | |
* @link https://gist.github.com/5520691 | |
*/ | |
function testGetColumnNrByName() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
Logger.log(getColumnNrByName_(sheet, '%COLUM_TITLE%')); | |
} |
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
/** | |
* @desc This is an Google Apps Script for getting Google+ ProfileId by url | |
* @author Misha M.-Kupriyanov https://plus.google.com/104512463398531242371/ | |
* @link https://gist.github.com/5520613 | |
*/ | |
function testGetGooglePlusProfileId() { | |
Logger.log('profileId:' + getGooglePlusProfileId('104512463398531242371')); | |
Logger.log('profileId:' + getGooglePlusProfileId('https://plus.google.com/u/0/+GoogleDevelopers/about')); | |
Logger.log('profileId:' + getGooglePlusProfileId('https://plus.google.com/u/1/+GoogleDevelopers/')); |
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
<?php | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |
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
<?php | |
session_start(); | |
define('SPREADSHEET_ID', '<YOUR_SPREADSHEET_ID_HERE>'); | |
define('SPREADSHEET_SHEET_ID', '<YOUR_SPREADSHEET_SHEET_ID_HERE>'); | |
$configurationFile = getcwd() . '/client_secret.json'; | |
if (!file_exists($configurationFile)) { | |
echo 'please client_secret.json is not available. Please download it form https://console.developers.google.com/' . PHP_EOL; |
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
/** Apps Script for testing site content and sending email **/ | |
function isSiteContainsString() | |
{ | |
// Get the URL of the Website to monitor | |
var url = SpreadsheetApp.getActiveSheet().getRange("E2").getValue(); | |
var stringToSearch = SpreadsheetApp.getActiveSheet().getRange("F2").getValue(); | |
// HTTP Response Code of the last server request |
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
/** | |
* @desc This is an App Script for fetching Google+ Profile data (e.g. name and profile image) to | |
* the Google Docs spreadsheet | |
* @author Misha M.-Kupriyanov https://plus.google.com/104512463398531242371/ | |
* @link https://gist.github.com/1919613 | |
* | |
* 1) Get your Google+ API KEY and paste it instead of %YOUR_API_KEY% | |
* https://developers.google.com/+/api/oauth#apikey | |
* https://code.google.com/apis/console#access | |
* 2) Create and name your spreadsheet "profiles" |
NewerOlder