Skip to content

Instantly share code, notes, and snippets.

View eddievlagea's full-sized avatar

Eddie Vlagea eddievlagea

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Manrope' rel='stylesheet'>
<link rel="shortcut icon" type="image/png"
href="https://yt3.ggpht.com/ej3kSN0C9GiHS5wa2zNQ3Pd59UcnpFeYjnGGBJEub1Nagwl6vpoe21oIJKWjBjzqvHDYtUONCw=s68-c-k-c0x00ffffff-no-rj" />
{%- auth0:head -%}
<style>
@eddievlagea
eddievlagea / useSearch.ts
Created March 2, 2023 14:09
useSearch.ts
import { useQuery, QueryObserverOptions } from "@tanstack/react-query";
type SearchProps = {
apiHostname: string;
apiKey: string;
query: string;
catalogId: string;
filterQuery?: string;
limit?: number;
offset?: number;
@eddievlagea
eddievlagea / test.css
Created November 22, 2022 17:38
test.css
.test {
/* declar variables */
--color-primary: #00ffd9;
--color-secondary: #f0f0f0;
--color-tertiary: #f0f0f0;
--color-quaternary: #f0f0f0;
--color-quinary: #f0f0f0;
}
@eddievlagea
eddievlagea / README.md
Created June 8, 2022 18:40 — forked from palewire/README.md
How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

Here's how I configured a GitHub Action so that a new version issued by GitHub's release interface will build a Dockerfile, tag it with the version number and upload it to Google Artifact Registry.

Before you attempt the steps below, you need the following:

  • A GitHub repository that contains a working Dockerfile
  • The Google Cloud SDK tool gcloud installed and authenticated

Create a Workload Identity Federation

require('dotenv').config();
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var index = require('./routes/index');
$('#edit_step_1').submit(function() {
var data = $(this).serialize();
$.ajax({
method: "post",
url: $(this).attr('action'),
data: data,
dataType: "JSON"
}).done(function(data){
console.log(data);
});
@eddievlagea
eddievlagea / asdasda
Created September 27, 2013 20:41
asdasdas
<section class="articles-list">
<ul>
<li>
<article id="some2323" class="post published">
<header class="post-header">
<h2>I love bad bitches</h2>
<h3>That's my fucking problem</h3>
</header>
<div class="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Itaque, possimus, doloremque, molestiae reprehenderit sit libero molestias eligendi assumenda repellendus dolores quis sapiente eum repellat beatae autem nisi deleniti totam et!</p>
@eddievlagea
eddievlagea / Preferences.sublime-settings
Created August 27, 2012 17:47
Sublime Text 2 settings
{
"auto_indent": true,
"auto_match_enabled": true,
"caret_style": "smooth",
"close_windows_when_empty": true,
"color_scheme": "Packages/Themes/prospettiva.tmTheme",
"detect_indentation": true,
"dictionary": "Packages/Language - English/en_US.dic",
"draw_centered": false,
"draw_indent_guides": true,
{
"auto_indent": true,
"auto_match_enabled": true,
"caret_style": "smooth",
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Tomorrow Night Aqua.tmTheme",
"detect_indentation": true,
"dictionary": "Packages/Language - English/en_US.dic",
"draw_centered": false,
"draw_indent_guides": true,
@eddievlagea
eddievlagea / unblur_quora.user.js
Created August 7, 2012 19:56 — forked from swanson/unblur_quora.user.js
Chrome user script to unblur Quora answers without signing up
// ==UserScript==
// @match http://*.quora.com/*
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-latest.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");