Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
GitHubbing

Dorian Marié (perso) dorianmariefr

💭
GitHubbing
View GitHub Profile
View password_resetable.rb
# requires :password_reset_token and :password_reset_token_expires_at fields
module PasswordResetable
extend ActiveSupport::Concern
included do
before_validation do
if password_reset_token_expires_at && password_reset_expires_at.past?
expire_password_reset!
end
end
View gist:86d0d65c558c9f13dcd8c07fb2ac8de6
{
"error": {
"message": "The model 'gpt-4' does not exist",
"type": "invalid_request_error",
"param": "model",
"code": "model_not_found"
}
}
View gist:7023759345d7f6aa3b5316c75c8fdf50
{
"error": {
"message": "The model 'gpt-4' does not exist",
"type": "invalid_request_error",
"param": "model",
"code": "model_not_found"
}
}
View gist:860463f769ea423ca25da8879e92ca69
{
"object": "list",
"data": [
{
"id": "whisper-1",
"object": "model",
"created": 1677532384,
"owned_by": "openai-internal",
"permission": [
{
View gist:c8e471ed405c9f33826900f6403077e5
/Users/soirees/Library/Preferences/.GlobalPreferences.plist
View dorian.patch
diff --git a/helloworld.rb b/helloworld.rb
index 4545ae5..fbe9b63 100644
--- a/helloworld.rb
+++ b/helloworld.rb
@@ -25,12 +25,13 @@ class Helloworld
puts "Hi from:"
end
- def say_hello(person, location)
- puts "#{person}, #{location}"
View stacked-orders.sql
select
1
from
deliveries
where
exists (
select
1
from
deliveries deliveries_2
@dorianmariefr
dorianmariefr / asdf-plugin-list-all
Created September 13, 2022 09:16
Output of `asdf plugin list all` (all the default URLs of asdf plugins)
View asdf-plugin-list-all
1password-cli https://github.com/NeoHsu/asdf-1password-cli.git
R https://github.com/asdf-community/asdf-r.git
act https://github.com/grimoh/asdf-act.git
action-validator https://github.com/mpalmer/action-validator.git
actionlint https://github.com/crazy-matt/asdf-actionlint.git
adr-tools https://gitlab.com/td7x/asdf/adr-tools.git
ag https://github.com/koketani/asdf-ag.git
age https://github.com/threkk/asdf-age
agebox https://github.com/slok/asdf-agebox.git
aks-engine https://github.com/robsonpeixoto/asdf-aks-engine.git
View result.txt
~/s/language> crystal a.rb
FF
Failures:
1) Hash(K, V) equals with symbol
Failure/Error: { :a => 1 }.should eq({ a: 1 })
Expected: {a: 1}
got: {:a => 1}
View error.txt
error in line 1
Error: while requiring "./spec/language_spec.cr"
In spec/language_spec.cr:5:25
5 | language = Language.create do
^-----
Error: instantiating 'Language.class#create()'