Skip to content

Instantly share code, notes, and snippets.

View wadewegner's full-sized avatar

Wade Wegner wadewegner

View GitHub Profile
@wadewegner
wadewegner / instructions.md
Created December 17, 2022 19:06
Install apps (like Netflix and Prime) on Peloton Tread+

turn on developer mode

enable USB connection

enable untrusted apps

Find a microUSB to USB cable that supports data (some only support charging)

Pop the Peloton cover off the back

@wadewegner
wadewegner / api-design-principles.md
Last active December 11, 2022 02:01
Top 10 API Design Principles
  1. Make the API easy to use and understand.
  2. Provide complete and accurate documentation.
  3. Use descriptive and consistent naming conventions.
  4. Support common HTTP methods such as GET, PUT, POST, and DELETE.
  5. Use standard data formats like JSON and XML.
  6. Design the API to be flexible and extensible.
  7. Support versioning to allow for changes and additions to be made easily.
  8. Implement error handling and provide clear error messages.
  9. Use security best practices to protect data and prevent unauthorized access.
  10. Use API keys or other authentication methods to identify and authorize users.
Sub BulkMail()
Application.ScreenUpdating = False
ThisWorkbook.Activate
Dim OutApp As Outlook.Application
Dim outMail As Outlook.MailItem
'Creating variable to hold values of different items of mail
@wadewegner
wadewegner / 2020goals.md
Created March 14, 2020 17:34
2020 Race Goals

[x] Dupont Trail Race (3/7/20) - 4:49:45.586

<template>
<lightning-card title="Create a Scratch Org">
<p class="slds-p-horizontal_small">
Enter your values to click Submit to create a Scratch Org.
</p>
<p class="slds-p-horizontal_small">
<lightning-input label="Org Name" value={orgName} onchange={handleChange}></lightning-input>
</p>
<p class="slds-p-horizontal_small">
<lightning-input label="Edition" value={orgEdition} onchange={handleChange}></lightning-input>
public static result: SfdxResult = {
tableColumnData: {
columns: [
{ key: 'id', label: 'ID' },
{ key: 'name', label: 'Name' },
{ key: 'description', label: 'Description' }
]
},
display() {
if (Array.isArray(http://this.data ) && http://this.data .length) {
@wadewegner
wadewegner / steps.sh
Created October 7, 2018 17:14
Getting React Native 0.57.2 and Xcode 10 to work together
react-native init sampleapp
cd sampleapp/
# Open your project in Xcode by double-clicking on ios/sampleapp.xcodeproj.
# File > Project Settings
# Change the Build System to Legacy Build System in Per-User Project Settings
yarn add @babel/runtime --dev
@wadewegner
wadewegner / NuGet.config
Created August 22, 2018 19:51
Solution to supporting net452
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<activePackageSource>
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
</activePackageSource>
<packageSources>
<add key="MyGet" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
</packageSources>
</configuration>
@wadewegner
wadewegner / .zshrc
Last active June 20, 2018 14:38
Scripts to assist in fixing issues with OSX networking
# Usage: na
# Expected output: en0
alias na="ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active' | egrep -o -m 1 '^[^\t:]+'"
# Usage: nr en0
nr() {
sudo ifconfig $1 down;sleep 10;sudo ifconfig $1 up
}
const forceUtils = require('../lib/forceUtils.js');
const request = require('request');
(function () {
'use strict';
module.exports = {
topic: 'test',
command: 'cmd',
description: 'test',