Skip to content

Instantly share code, notes, and snippets.

Avatar
😼
Cat face with wry smile

Alex Ivanov contributorpw

😼
Cat face with wry smile
View GitHub Profile
View !Получение строки для регулярного выражения.md

Получение строки для регулярного выражения

Рабочий код находится в файле run.gs. Чтобы проверить его работоспособность можно запустить код ниже в любом редакторе Google Apps Script.

function doit(){
  if ((typeof run)==='undefined') {
    var cs = CacheService.getScriptCache().get('cache');
    if(!cs){
      cs = UrlFetchApp
        .fetch('https://gist.githubusercontent.com/oshliaer/386844d1dc524605a1eec9e54c50d30e/raw/83ee38949c25993dc54b5f66721475ba0c7c3c70/run.gs')
View curlGmail.md
@contributorpw
contributorpw / cb-in
Created Jul 22, 2018 — forked from Gen2ly/cb-in
Copy file or pipe to Xorg clipboard
View cb-in
#!/bin/bash
# Copy file or pipe to Xorg clipboard
# Required program(s)
req_progs=(xclip)
for p in ${req_progs[@]}; do
hash "$p" 2>&- || \
{ echo >&2 " Required program \"$p\" not installed."; exit 1; }
done
@contributorpw
contributorpw / cb-out
Created Jul 22, 2018 — forked from Gen2ly/cb-out
Paste contents of Xorg clipboard to a file from the command line
View cb-out
#!/bin/bash
# Paste contents of Xorg clipboard to a file from the command line
filename=$@
pasteinfo="clipboard contents"
# Display usage if no parameters given
if [[ -z "$@" ]]; then
echo " ${0##*/} <filename> - paste contents of context-menu clipboard to file"
exit
@contributorpw
contributorpw / submit.md
Created Jul 2, 2018 — forked from tanaikech/submit.md
Benchmark: Search for Array Processing using Google Apps Script
View submit.md

Benchmark: Search for Array Processing using Google Apps Script

July 2, 2018

Kanshi Tanaike

Introduction

View !.md
View .readme.md