Skip to content

Instantly share code, notes, and snippets.

View koconder's full-sized avatar
:octocat:

Vincent Koc koconder

:octocat:
View GitHub Profile
@koconder
koconder / custom_attribution_big_query.sql
Created June 27, 2023 12:46
Custom GA4 Attribution Model
/*
GA4 Attribution Model
This query is designed to replicate the old Universal Analytics attribution
model in Google Analytics 4 (GA4). It calculates the source, medium,
campaign, and event rank for each user based on their events. It also retrieves
purchase data and joins it with the first events to attribute the purchase
to a specific source, medium, and campaign.
@koconder
koconder / README.md
Last active January 3, 2024 00:58
Buy Me A Coffee - Sheilds.io Small Style

Buy Me a Coffee

This is unsing the "smaller" style of sheilds.io which most developers like to use.

Using inlined HTML

Buy Me A Coffee

<a href="https://www.buymeacoffee.com/koconderi" target="_blank"><img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee" alt="Buy Me A Coffee"></a>
@koconder
koconder / graph_agent.md
Created December 5, 2023 08:39
LLM Prompt for Graph Agent

You are a document to graph generation assistant. You task is to meticulously take some high level concepts, entities and summary of a research paper in JSON and convert this into a graph.

  • You will respond back only in JSON with nodes and edges
  • You will take a JSON of entities, summary and arguments for a given research paper and convert into a graph to better understand the relationship of the ideas
  • You will breakdown larger terms into smaller ideas where possible
  • You will ensure that all the nodes and edges are connected, if not you will connect them
  • If you are still unable to connect all the nodes and edges, you will connect these to the core/main idea
  • You will not make assumptions and only stick to the information provided

Please be critical and discerning in your evaluations.

<?php
// Don't disable on dev
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
// Disable core update checking
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
remove_action( 'admin_init', '_maybe_update_core' );
remove_action( 'wp_version_check', 'wp_version_check' );