Skip to content

Instantly share code, notes, and snippets.

View anton-dudarev's full-sized avatar
🎯
Focusing

Anoubis anton-dudarev

🎯
Focusing
View GitHub Profile
@az09
az09 / awesome-gis-tg.md
Last active December 7, 2024 09:29
List of good groups and channels from the telegram network on geospatial topics. Mainly in Russian

SAP Analysis for Office has a bunch of defined functions which can be used in VBA or otherwise, This function list was extracted from the BiExcelBase.tlb type library.

Function BExGetCellData(iMemberX As String, iMemberY As String, iDataProviderName As String)
    Member of BiExcelBase.EaExcelFunctions

Function BExGetData(iDataProviderName As String, iDimensionValueList() As String)
    Member of BiExcelBase.EaExcelFunctions

Sub CallbackAfterWorkbookClose()
@Anshul0305
Anshul0305 / index.js
Created January 14, 2020 10:43
Connecting Dialogflow with Spreadsheets
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
const axios = require('axios');
const nodemailer = require("nodemailer");
const mysql = require('mysql');
const transporter = nodemailer.createTransport({
@Anshul0305
Anshul0305 / index.js
Created January 13, 2020 10:04
Connecting Dialogflow with External APIs
'use strict';
const axios = require('axios');
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => {
@AndrewPla
AndrewPla / Get-PublicIPInfo.ps1
Last active January 12, 2020 10:51
Returns Public IP info from ip.nf Can be ran on remote computers
function Get-PublicIPInfo {
<#
.Description
Returns Public IP info from ip.nf
.Parameter IPAddress
Supply an IP address that you would like to lookup.
.Parameter ComputerName
Names of computers to run this command on.
.Parameter Credential
Credential used by Invoke-Command when performing the lookup on a remote machine.
/*
This Function is designed to clear the adjacent cell to the right of the one
that has just been edited - so long as it is within the column we specify
(so only edits in column 2 here).
*/
function onEdit(e) {
// get edited cell from the event object
var cell = e.range;
@AndrewPla
AndrewPla / Add-WindowsTerminalSchemes.ps1
Last active February 7, 2022 09:18
Updates the Windows Terminal profiles.json file with all the schemes from https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/windowsterminal
# Path to the profile when installed from the Windows Store.
$profilePath = "C:\Users\$Env:Username\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"
# Remove existing comments from the profiles.json file.
$profile = (Get-Content $ProfilePath) -replace '(?m)(?<=^([^"]|"[^"]*")*)//.*' -replace '(?ms)/\*.*?\*/' | Out-String | ConvertFrom-Json
$backupProfilePath = "$home\Documents\WindowsTerminalprofiles.json"
Write-Verbose "Backing up profile to $backupProfilePath"
$profile | ConvertTo-Json | Set-Content $backupProfilePath
@t-eckert
t-eckert / flat-ui-v1.json
Last active November 17, 2022 04:09
Flat UI Color Scheme V1 implemented as Windows Terminal color scheme. https://flatuicolors.com/palette/defo
{
"background":"#000000",
"black":"#000000",
"blue":"#2980b9",
"brightBlack":"#7f8c8d",
"brightBlue":"#3498db",
"brightCyan":"#1abc9c",
"brightGreen":"#2ecc71",
"brightPurple":"#9b59b6",
"brightRed":"#e74c3c",
@anton-dudarev
anton-dudarev / index.js
Created May 25, 2019 22:20 — forked from JaldeepAsodariya/index.js
HelloThings - A Firebase Cloud Function for manage webhook request from Dialogflow for Turn On/Off LED light.
'use strict';
process.env.DEBUG = 'actions-on-google:*';
// Create and Deploy Your First Cloud Functions
// https://firebase.google.com/docs/functions/write-firebase-functions
const functions = require('firebase-functions');
const Assistant = require('actions-on-google').ApiAiAssistant;
const admin = require('firebase-admin');
@thomaslombart
thomaslombart / dialogflow-agent-data.js
Last active June 25, 2020 14:47
Save data in conversation for dialogflow-fulfillment Node.js library
// agent is an instance of WebhookClient
function setContextData(agent) {
const handler = {
set(target, property, value) {
const parameters = agent.context.get("data")
? agent.context.get("data").parameters
: {};
parameters[property] = value;