I hereby claim:
- I am daverogers on github.
- I am daverogers (https://keybase.io/daverogers) on keybase.
- I have a public key whose fingerprint is 3E60 69FA 897B 97EF 1C7C 4949 0400 4D9C 54CB 0F66
To claim this, I am signing this object:
| <script setup> | |
| // i always wanted a way to mimic IDEs in web forms, where i can wrap highlighted text with quotes | |
| // or any other characters you'd typically want to wrap (parens, backticks, curly brackets, etc) | |
| // this can be easily adjusted to accomodate any/all characters you want to wrap with | |
| // (i just happened to be implementing this in a Vue project, but you can use it in vanilla js) | |
| const keydown = (event) => { | |
| const input = event.target; | |
| const selectionStart = input.selectionStart; |
| <?php | |
| use Faker\Generator; | |
| use Faker\Provider\Base; | |
| use Faker\UniqueGenerator; | |
| /** | |
| * The default UniqueGenerator groups by the method name called, | |
| * this class allows a custom tag to be specified instead | |
| * |
| <?php | |
| // default Laravel output | |
| Str::of('TableID')->kebab(); | |
| // result: 'table-i-d' | |
| // my way, grouping by capital letters | |
| Str::of('TableID') |
| <?php | |
| // evenly distribute colors across $return keys | |
| $colors = [ 'red', 'blue', 'green', 'pink' ]; | |
| $return = [ 0,1,2,3,4,5,6,7,8,9 ]; | |
| foreach($return as $i => $loop) { | |
| $return[$loop] = $colors[$i % count($colors)]; | |
| } |
| #!/usr/bin/php | |
| <?php | |
| /* | |
| * COPY AS JIRA TABLE by @daverogers | |
| * Copies Sequel Pro result into JIRA's table format. Save with the Bundle Editor (as new Copy bundle). | |
| * | |
| * Thanks to @jakob-stoeck for his example Gist! | |
| */ |
I hereby claim:
To claim this, I am signing this object: