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 | |
function every($fn, $ls) | |
{ | |
$keys = array_keys($ls); | |
$params = (new \ReflectionFunction($fn))->getParameters(); | |
return array_reduce($keys, function ($carry, $idx) use ($fn, $ls, $params) { | |
$args = $ls[$idx]; |
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
require "#{ENV["TM_SUPPORT_PATH"]}/lib/scriptmate" | |
class NodeScript < UserScript | |
def lang; "JavaScript" end | |
def default_extension; ".js" end | |
def args | |
[] | |
end | |
def executable; @hashbang || ENV['TM_NODE'] || 'node' end | |
def version_string |
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
// Available under Creative Commons Attribution-ShareAlike 2.5 UK: Scotland License | |
// Bashed by mhawksey | |
var SPREADSHEET_ID = ""; // If using within Google Sites paste the spreadsheet key here (this is everything between key= and &hl in the address bar) | |
// JavaScript Document | |
function onOpen() { | |
if (SPREADSHEET_ID == ""){ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var menuEntries = [ {name: "Setup", functionName: "setup"}, {name: "Send Booking Confirmations", functionName: "sendBookingConf"}]; |