Skip to content

Instantly share code, notes, and snippets.

@jeremybenaim
jeremybenaim / changelog_generator.yml
Last active January 28, 2024 19:13
Automate your changelog thanks to ChatGPT
# .github/workflows/changelog_generator.yml
name: Generate Changelog and Post to Slack
on:
schedule:
# This will run every Friday at 3 PM UTC
- cron: "0 15 * * 5"
jobs:
@jeremybenaim
jeremybenaim / main.dart
Created June 21, 2023 12:59
Using PhotoRoom with Dart
import 'dart:convert';
import 'dart:html';
void main() {
final headers = {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY', // Replace with your own API key
};
final jsonData = {
'imageUrl': 'https://cdn.shopify.com/s/files/1/0540/1726/1765/files/OS-Trays-DarkGreen.jpg?v=1677609582&width=720',

Keybase proof

I hereby claim:

  • I am jeremybenaim on github.
  • I am jeremybenaim (https://keybase.io/jeremybenaim) on keybase.
  • I have a public key ASARdCbfAWJMvcOjN9OlRtbg9mGxOCN3JMNulyIaAMaVhQo

To claim this, I am signing this object:

@jeremybenaim
jeremybenaim / typer.js
Last active August 29, 2015 14:23
Typewriting style pre-populate
/*
* Input populate with typerwriting emulation (sort of...)
* (e.g. for url like /lostpassword?email=xxx@yyy.zzz)
*/
var email = "xxx@yyy.zzz", // e.g. get email from url query params
input = document.querySelector('input[name="email"]'),
splitted = email.split(''),
type;
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Webkit speech-input demo</title>
<link rel="stylesheet" href="http://jeremybenaim.com/css/style.css">
<style>
body{padding:10px 15px; font:normal 24px/1.5 Arial, Helvetica; color:#444}
input{font-size:24px; padding:3px 5px}