Skip to content

Instantly share code, notes, and snippets.

View davidhemphill's full-sized avatar
💀
WIP

Hemp davidhemphill

💀
WIP
View GitHub Profile
{
"Actions": "Actions",
"Details": "Details",
"If you did not request a password reset, no further action is required.": "If you did not request a password reset, no further action is required.",
"Reset Password": "Reset Password",
"Sorry! You are not authorized to perform this action.": "Sorry! You are not authorized to perform this action.",
"You are receiving this email because we received a password reset request for your account.": "You are receiving this email because we received a password reset request for your account.",
"Error": "Error",
"Confirm Password": "Confirm Password",
"We have emailed your password reset link!": "We have emailed your password reset link!",
@davidhemphill
davidhemphill / bundle.ts
Created September 10, 2021 20:16 — forked from alexzofa/bundle.ts
sample code to use bundle for uploading 0-n.png in the ./assets folder to Arweave
import Arweave from "arweave";
import {
bundleAndSignData,
createData,
ArweaveSigner,
DataItem,
} from "arbundles";
import { JWKInterface } from "arweave/node/lib/wallet";
import fs from "fs";
@davidhemphill
davidhemphill / README.md
Created September 11, 2019 16:59
Change D+HJKL to arrow keys (for Karabiner Elements)

HEMP D+HJKL to Arrow Keys v1.0

This complex modification changes HJKL to Vim style arrow keys when "D" is held down. Please adjust Karabiner Elements' simultaneous_threshold_milliseconds to between 150-500ms for this to work correctly. I'm currently using a value of 250.

@davidhemphill
davidhemphill / .php_cs.laravel.php
Created July 17, 2019 15:28 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'phpdoc_indent' => true,
'binary_operator_spaces' => [
'operators' => ['=>' => null]
],
<?php
namespace App\Nova\Filters;
use Illuminate\Http\Request;
use Illuminate\Support\Carbon;
use Illuminate\Container\Container;
use Laravel\Nova\Filters\DateFilter as NovaDateFilter;
class DateFilter extends NovaDateFilter
@davidhemphill
davidhemphill / index.html
Created January 29, 2018 16:23
Syntax Soundboard
<div class="wrapper">
<div class="container">
<div class="list">
<div class="list__header">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/syntax_scott_avatar.jpg" alt="avatar">
<div class="hostname">Scott Tolinski</div>
</div>
<div class="list__body">
<div class="list__item" data-key="81">
<div class="list__item-key">Q</div>
<script>
export default {
props: ['label', 'checked'],
data() {
return {
classes: {
'checkbox-input-active': this.checked
},
}
},
@davidhemphill
davidhemphill / btc-eth-dca-buy.php
Created September 8, 2017 18:18 — forked from levelsio/btc-eth-dca-buy.php
This script runs daily and "Dollar Cost Average"-buys $40 BTC and $10 ETH per day
<?
//
// [ BUY BTC & ETH DAILY ON BITSTAMP ]
// by @levelsio
//
// 2017-08-23
//
// 1) buy $40/day BTC
// 2) buy $10/day ETH
//
{
"name": "hemp/zombie",
"description": "Zttp",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"autoload": {
"files": [
"helpers.php"
]
@davidhemphill
davidhemphill / README.md
Created March 28, 2017 18:36 — forked from csswizardry/README.md
Vim without NERD tree or CtrlP

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vsp **/*<partial file name><Tab>