Skip to content

Instantly share code, notes, and snippets.

View ahcarpenter's full-sized avatar

Andrew H. Carpenter ahcarpenter

  • Frontdoor, Inc.
  • Nashville, TN
View GitHub Profile
@ahcarpenter
ahcarpenter / extensions.json
Created August 12, 2022 19:24
Extensions via Settings Sync
// Note: you may need to download the settings sync extension and link it to these to pull these in (https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync)
[
{
"identifier": {
"id": "vscode.bat"
},
"preRelease": false,
"version": "1.0.0"
},

Keybase proof

I hereby claim:

  • I am ahcarpenter on github.
  • I am ahcarpenter (https://keybase.io/ahcarpenter) on keybase.
  • I have a public key ASBh8mmS4m6DLe-2royY8Ramdozid5eEeonXSX2kuQVngQo

To claim this, I am signing this object:

@ahcarpenter
ahcarpenter / samples.rb
Created October 10, 2011 05:41
sample ruby code
#------------------ Misc
def clock_in
timestamp = Timestamp.new
timestamp.user_id = self.id
timestamp.time_in = DateTime.now
timestamp.save
end
def clock_out(user_id)
timestamp = Timestamp.find_last_by_user_id(user_id)