Skip to content

Instantly share code, notes, and snippets.

View danitrap's full-sized avatar
🥑

Daniele danitrap

🥑
View GitHub Profile
@danitrap
danitrap / keybase.md
Created January 4, 2021 10:51
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

import { readonly, ref } from "vue";
/**
* Vue 3 custom hook to promisify a user's choice inside of a modal
*
* since the ask function returns a promise, it lets you
* await the user's choice and continue execution.
*
* @author Daniele Trapani
*/
@danitrap
danitrap / Preferences.sublime-settings
Last active August 29, 2015 14:07
My Sublime Text 3 Preferences
{
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/User/Color Highlighter/themes/Flatland_Dark.tmTheme",
"drag_text": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
"font_face": "Inconsolata-g",
"font_options":
@danitrap
danitrap / gist:7935239
Created December 12, 2013 20:52
Ruby: make instance methods private
private *instance_methods.select { |m| m !~ /(^__|^\W|^binding$)/ }