Skip to content

Instantly share code, notes, and snippets.

View markomitranic's full-sized avatar
🧀
Cheese mode!

Marko Mitranic markomitranic

🧀
Cheese mode!
View GitHub Profile
@markomitranic
markomitranic / forecast_model_template.sql
Created March 16, 2023 08:32 — forked from Sassano-Weld/forecast_model_template.sql
Sales forecasting model written for GOOGLE BIGQUERY
--------**********---------
/*
AUTHOR: CHRISTIAN SASSANO/DARYL PAUL : WELD TECHNOLOGIES ApS
PUBLISHED: MAY 2022
https://weld.app
Join us in slack: https://join.slack.com/t/weldcommunity/shared_invite/zt-19b372339-1m9ftp0YW2AU8ToZpBViAA
Sales forecasting model written for GOOGLE BIGQUERY using the following inputs
CUSTOMER_ID|FIRST_ENTERED_SALES_FUNNEL_DATE|FIRST_CONVERTED_DATE|DAYS_TO_WON|ENTERED_SALES_FUNNEL|CONVERTED
@markomitranic
markomitranic / Log.php
Last active February 16, 2020 12:38 — forked from laverboy/LogUse.php
A simple, static, logging singleton class
<?php
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Psr\Log\LoggerInterface;
final class Log {
/** @var string */
private const OUTPUT_STREAM = 'php://stderr';
@markomitranic
markomitranic / get-image-urls.js
Created December 21, 2019 13:55 — forked from tobek/get-image-urls.js
Save images from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/