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
echo off | |
Set Name=JobName | |
Set Source="\\servername\directory" | |
Set Target="C:\Destination" | |
Set FilePattern="filename*.xlsx" | |
Set Today=%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2% | |
Set Logname="C:\Logs\%Today%_%Name%.log" | |
Echo Source is %source% | |
Echo Target is %target% |
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 | |
'Walkbys' AS location_metric_name, | |
granularity, | |
location_id, | |
hour(interval_start) AS hour_of_day, | |
weekday(interval_start) AS day_of_week, | |
sum(location_walkbys) AS location_metric_value | |
Resident location_traffic_metrics | |
WHERE granularity = 'Hourly' | |
AND hour(interval_start) >= $(OpeningHour) |
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
/* | |
General format: | |
curl -X POST --data-urlencode 'payload={"channel": "#sense-notification", "username": "webhookbot", "text": "This is posted to #sense-notification and comes from a bot named sensebot.", "icon_emoji": ":ghost:"}' https://hooks.slack.com/services/<....enter_your_key_here....> | |
Formatting: https://slack.zendesk.com/hc/en-us/articles/202288908-How-can-I-add-formatting-to-my-messages- | |
More formatting formatting: https://api.slack.com/docs/formatting | |
Slack API docs: https://api.slack.com/incoming-webhooks | |
Available emojis: http://www.emoji-cheat-sheet.com/ | |
*/ |
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
// Use in chart title/subtitle/footer for describing what data is shown in a chart, etc | |
='Chart contains data up until and including ' & Date(Max({1} Date), 'YYYY-MM-DD') |
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
// Sum FieldName per the last available date we have data for, withinin the current selection | |
Sum( {$<DateNum={$(#=Max(DateNum))}>} FieldName) |
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
=rangeavg(above(sum(sales),0,3)) //3 Period Rolling Average |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |