Skip to content

Instantly share code, notes, and snippets.

View gsans's full-sized avatar
🚁
Hawaii is Awesome

Gerard Sans gsans

🚁
Hawaii is Awesome
View GitHub Profile
@gsans
gsans / gemini-1.5-angular-http-axios.md
Last active February 29, 2024 19:40
Prompt: angular/http vs axios

Comparing Angular Http Client and Axios codebases for potential enhancements

In this example, we compare the Angular Http client codebase against Axios looking for Axios-inspired enhancements.


User:

Folder Files Tokens
@gsans
gsans / JSMP-05-transcript.txt
Created February 16, 2024 19:53
JSMP 5: Gerard Sans on OpenAI – The Start of a New Era in AI (Transcript)
foreign Poland conferences are coming soon
this year promises to be exceptional we will see the angular team on the stage
we will see quick create solid.js Creator experts from Google Microsoft
Amazon Cisco all zero and many many more join an amazing group of developers like
you today let's come together to celebrate angular and JavaScript go to
ngpaulin.pl and sign up now [Music]
what's up everyone this is founder of AMG Poland JS Poland England mastered to
death and workshopfest.dev welcome back to the JavaScript Master podcast today we've
got a special guest from London UK M.C speaker trainer Community leader ladies
and gentlemen Gerard sounds [Music]
@gsans
gsans / JSMP-05-podcast.md
Created February 16, 2024 19:23
JSMP 5: Gerard Sans on OpenAI – The Start of a New Era in AI

JSMP 5: Gerard Sans on OpenAI – The Start of a New Era in AI

Dariusz Kalbarczyk: Welcome back to the JavaScript Master Podcast! Today we have a special guest, Gerard Sans, joining us from London. Gerard is an MC, speaker, trainer, and community leader with a wealth of knowledge about the rapidly evolving world of AI.

In this episode, we delve into the capabilities of OpenAI's groundbreaking technologies, including GPT-3, Codex, and Dall-E, exploring their potential to revolutionize various industries.

Will AI Replace Our Jobs?

One of the biggest concerns surrounding AI is its potential to replace human jobs. Gerard acknowledges this fear, particularly in fields like design and writing, where AI tools are now capable of generating stunning images and convincing text. However, he also emphasizes the potential of AI to augment human capabilities and boost efficiency.

@gsans
gsans / voice.service.ts
Created August 30, 2023 17:45
Angular Service to use latest ElevenLabs APIs for text-to-speech and streamed APIs for low latency
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from 'src/environments/environment.development';
// Usage:
// import { VoiceService } from './voice.service';
//
// export class Component {
// constructor(private audio: AudioService) { }
// public playTextToSpeech(text:string) {
import { createApp } from 'vue'
import { DefaultApolloClient } from '@vue/apollo-composable'
import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core'
import App from './App.vue'
const httpLink = createHttpLink({
uri: 'https://l5z4hz.sse.codesandbox.io/',
})
const apolloClient = new ApolloClient({
link: httpLink,
Planet Earth is hosting a number of conflicts now of large proportions and sad consequences. Hence I hope you'll excuse my lack of room for any attempt at a witty intro to this interview. I'd say let's focus on the art, the artist and her story, and try to find inspiration and strength in all that art has to offer to the human race. I discovered Anna Lucia (Twitter, works on Tezos, works on Foundation, Art Blocks) and her work in the Genuary days of 2021, and followed her since. Here's what she had to say in an interview carried out actually a couple months ago now. Thanks Anna Lucia!
Q: What is your background?
A: I've always loved playing around with numbers for as long as I can remember. When I was little, my mom used to keep me entertained with story sums on long car trips. Numbers is what kept me calm and happy. Naturally, in school, I excelled at math. At the same, I was always making stuff. It started with making clothes for my Barbie that I would design on the computer. That evolved in designing and
@gsans
gsans / src_service-worker.js
Created June 29, 2022 18:14
codez058: service worker
workbox.core.setCacheNameDetails({ prefix: "appsyncmasterclass-frontend" });
workbox.core.skipWaiting()
workbox.core.clientsClaim()
const cacheFiles = [
{
"revision": "931caf57a56b47ef400c",
"url": "/img/icons/android-chrome-192x192.png"
},
@gsans
gsans / public_manifest.json
Created June 29, 2022 18:13
codez057: manifest file
{
"name": "appsyncmasterclass-frontend",
"short_name": "appsyncmasterclass-frontend",
"theme_color": "#4DBA87",
"icons": [
{
"src": "./img/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
@gsans
gsans / vue.config.js
Created June 29, 2022 18:12
codez056: custom pwa configuration
const manifest = require('./public/manifest.json')
module.exports = {
pwa: {
name: manifest.short_name,
themeColor: manifest.theme_color,
msTileColor: manifest.background_color,
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
workboxPluginMode: 'InjectManifest',
@gsans
gsans / Tweet.vue
Created June 14, 2022 15:18
codez055: compact tweet details
<template>
<div v-if="tweet.profile" class="w-full p-2 pt-1 pb-1 md:p-4 md:pt-2 md:pb-2 border-b hover:bg-lightest flex">
<div class="flex-none mr-2 md:mr-4 pt-1">
<a :href="`#/${tweet.profile.screenName}`">
<img :src="`${tweet.profile.imageUrl || 'default_profile.png'}`" class="h-12 w-12 rounded-full flex-none"/>
</a>
</div>
<div class="w-full">
<div class="flex items-center w-full">
<p class="font-semibold">{{ tweet.profile.name }}</p>