View password_resetable.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"message": "The model 'gpt-4' does not exist", | |
"type": "invalid_request_error", | |
"param": "model", | |
"code": "model_not_found" | |
} | |
} |
View gist:7023759345d7f6aa3b5316c75c8fdf50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"message": "The model 'gpt-4' does not exist", | |
"type": "invalid_request_error", | |
"param": "model", | |
"code": "model_not_found" | |
} | |
} |
View gist:860463f769ea423ca25da8879e92ca69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"object": "list", | |
"data": [ | |
{ | |
"id": "whisper-1", | |
"object": "model", | |
"created": 1677532384, | |
"owned_by": "openai-internal", | |
"permission": [ | |
{ |
View gist:c8e471ed405c9f33826900f6403077e5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/soirees/Library/Preferences/.GlobalPreferences.plist |
View dorian.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
1 | |
from | |
deliveries | |
where | |
exists ( | |
select | |
1 | |
from | |
deliveries deliveries_2 |
View asdf-plugin-list-all
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()' |
NewerOlder