Skip to content

Instantly share code, notes, and snippets.

View dabernathy89's full-sized avatar

Daniel Abernathy dabernathy89

View GitHub Profile
@dabernathy89
dabernathy89 / proxy.go
Created February 7, 2024 21:05
Super simple Go reverse proxy
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
)
func main() {

Prompt: Write a Vue component that displays the most popular repositories from Github

Here is an example of a Vue component that displays the most popular repositories from Github:

<template>
  <div>
    <h1>Popular Github Repositories</h1>
 
{
"basics": {
"name": "Daniel Abernathy",
"label": "Senior Web Developer",
"picture": "https://www.danielabernathy.com/wp-content/uploads/2014/08/daniel_headshot_square.jpg",
"email": "dabernathy89@gmail.com",
"website": "https://www.danielabernathy.com",
"summary": "I'm an experienced PHP and JavaScript developer, with a particular focus on the Laravel and Vue.js frameworks.",
"location": {a{
"basics": {
const fs = require('fs');
const { join } = require('path');
const _ = require('lodash');
function getAllDirectoriesNested(path, allDirectories) {
allDirectories = allDirectories || [];
let directories = fs.readdirSync(path)
.filter(file => {
return fs.statSync(join(path, file)).isDirectory();
<template
v-for="(slot, slot_name) in $slots"
:slot="slot_name">
<slot :name="slot_name"></slot>
</template>
<template
v-for="(slot, slot_name) in $scopedSlots"
:slot="slot_name"
slot-scope="props">
Hey y'all! Let's do a Southeast PHP Wurstcon! It's happening on Friday, after the after-party (exact time TBD).
The restaurant, Bavarian Bierhaus, is located in the mall next to the Grand Ole Opry:
https://goo.gl/maps/qnrPjuBZHXF2
Let me know if you'd like to attend or if you have thoughts on the schedule below!
FFFCCCGGMMMHHHHHHHHBNNNNJJIISSSSLLLLLLLLJBBBBRRRRCCCZZZZZEEEJJJJJMMMMMMRRFFFFQQQNIIMMMMMZZZZEEAAIIIADDSSSSSYYYQQKKKKKKKKKNNNNCCCCCXSSSSSSSSSSSSSSCCCVVAAAAAABZZZZDDDDDDDDDDDDDDHHHBBBBBUUUUAAACCCCTTVVVVUUGGCCCCCCCCCCIIOOOOEEERRRRRRRRRRRRRSNNWWWGGGKKKKHHHVVVBBFFFFCCCIIIIFFFFFFFZZZRZZZCCCCCCCCCCCCCCCCCCNNNNCCCCCVFFFFFFNNNNNNNNNNNNTTTTXXXXFFFFFFFAASSSSSSSSSNNNNNNNYYRRHHHKKKKKKATTTTXXBBBBBBBFFFMMMMMMMMUUUUUZZZGRRXEEEAJJUUUUUUWAAGVVVVVVVVVVVVVVUUUUUUUUKWRGGGGGGGDAAAAAAAAAAAAEEEEEEEQQQQQQQQQQQBBBBBFFFSAAAAAAAXXXXXXXPPPPPPPWWWWWWWNNPWWGGVVVVTYYYYYYYYYYYYRRRRRRFFFFHTDRRRDDDDHBBBBBBBBSXXXXXXXXXXXXXXFFFFFIIJLLLLLLLLLQQQQVVVVGCCCCCCCCCCCCCCPPPPPPJJNNNNCCCCCRRLLMMUFSSSPPPPPSSSSSSSSSSSSSSFFFFWEEEEEEEEEEEEEEEEZZNNNMNNNNNNNNNMMMBBBBBLLLLSSMMMMMMMMMMMMMMUUUUUUUUUUUUWWWWWWWWWWWIIIOOOBCCRPPPPPZOZWPPPPPPPPIVVVDZZZZZZZIIIIDDDDDDDDDDDDDDDDDDDDDDLLLLLJNNNUUUUAAAFHHHHIIIIGGGVPPPPPPPLLAAYYYYYYYYYYYYYYYYYEEEEEEZZZGGGGRRRRRRRRRRNNNNNNNNNPYYEEXXXXXXXLHHHHBCCMRRRRRRRRRTTTTTTTPPPYYYDDDLLLNVVVVVVVVVVEHHHHHHHHHHHHHHHZWPIQQQQQQQQQJJJJJJJJJJJJ
@dabernathy89
dabernathy89 / component.vue
Last active June 21, 2018 14:57
How to wrap a component that uses slots?
<v-server-table
:columns="columns"
:options="mergedOptions"
:name="tableName"
:ref="tableName">
<template slot="beforeFilter">
<slot name="beforeFilter"></slot>
</template>
<template slot="afterFilter">
@dabernathy89
dabernathy89 / conference-slack-reasons.md
Created January 30, 2018 20:19
Why would a conference Slack be useful?

In addition to normal conference discussion that happens on Twitter, I think that having a dedicated place for conference discussion (Slack, Discord, or something else) would be useful.

There are a few limitations with Twitter:

  • conversations are not centralized around topics
  • not everyone wants to use their Twitter to discuss conference stuff (some people are more selective about how they tweet)
  • 280 character limit, no formatting
  • hashtag gets flooded with well-meaning but possibly over-eager live-tweeters

Here are the benefits of using a messaging app in addition to Twitter:

Keybase proof

I hereby claim:

  • I am dabernathy89 on github.
  • I am dabernathy89 (https://keybase.io/dabernathy89) on keybase.
  • I have a public key ASBoFatFFwKWw1_xz99UcyHPVG_3rJSp-yyWJdlvab_kjQo

To claim this, I am signing this object: