Skip to content

Instantly share code, notes, and snippets.

View matthewmccullough's full-sized avatar

Matthew J. McCullough matthewmccullough

View GitHub Profile
@riggaroo
riggaroo / GradientAlongPathAnimation.kt
Last active January 24, 2024 15:45
Gradient along a path using path.flatten in Compose, Inspired by William Candillon https://youtu.be/7SCzL-XnfUU, this uses Jetpack Compose to draw a gradient along a path https://github.com/wcandillon/can-it-be-done-in-react-native/tree/master/bonuses/skia-examples/src/PathGradient
package androidx.compose.samples.animationfactory
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
@vilmibm
vilmibm / alias.yml
Last active September 30, 2020 15:54
These can be copied and pasted into ~/.config/gh/config.yml in the aliases block.
approve: pr review -a
checklist: !gh issue list -l$1 | sed "s/^/- [ ] /" > checklist.md
clone: repo clone
co: pr checkout
cowments: !gh api "repos/:owner/:repo/issues/$1/comments" | jq "map(.body)[]" | while read c; do cowsay $c; done
heart: api -H Accept:application/vnd.github.squirrel-girl-preview+json -XPOST repos/:owner/:repo/issues/$1/reactions --raw-field content=heart
igrep: !gh issue list -l$1 | grep $2
il: issue list
immigrant-justice: gist view eb5f40f9ec892f22064804af90065726
@lizthegrey
lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@tcbyrd
tcbyrd / SCIM-SAML-Identities.graphql
Last active April 30, 2021 16:42
SCIM and SAML identities for all members in an Organization
# Pass the URL for an Organization into the query
# to get a list of members in a specific Organization.
# Example: { "url": "https://github.com/:organization" }
query getResource($url: URI!) {
resource(url: $url) {
... on Organization {
samlIdentityProvider {
externalIdentities(first:10) {
nodes {
scimIdentity {
@bsletten
bsletten / ml-recs.md
Last active January 24, 2024 19:28
Machine Learning Path Recommendations

This is an incomplete, ever-changing curated list of content to assist people into the worlds of Data Science and Machine Learning. If you have a recommendation for something to add, please let me know. If something isn't here, it doesn't mean I don't recommend it, I just may not have had a chance to review it yet or not.

I will generally list things in order of easier to more formal/challenging content.

It may feel like there is an overwhelming amount of stuff for you to learn (because there is). But, there is a guided path that will get you there in time. You need to focus on Linear Algebra, Calculus, Statistics and probably Python (or R). Your best bet is to get a Safari Books Online account (https://www.safaribooksonline.com) which you may already have access to through school or work. If not, it is a reasonable way to get access to a tremendous number of books and videos.

I'm not saying you will get what you need out of everything here, but I have read/watched at least some of all of the following an

Holiday Lunch: December 14, 2017 Expensing Guidelines for Remote Hubbers

For those of you who don't regularly work out of HQ and aren't able to join this Thursday's fun, we'd love for you to lunch on on the company.

Some guidelines from our trusted Financetocats:

Amount: $25(US)

When expensing through Expensify:

The 5-minute backpack demo

Here's what I carry in a Tom Bihn Synapse 19 bag when I travel for 1-to-n days. In general, I optimize for low-weight items, with a secondary focus on reducing maintenance. You can peruse a gallery of pictures, too.

Clothing

@tcbyrd
tcbyrd / pg-videos.md
Last active April 12, 2017 08:47
Professional Guides Videos

GitHub Professional Guides

This is a series of videos produced by Hubbers. They cover several important practices in modern software development and the features on GitHub that enable professional developers. With one exception (pre-receive hooks), features are available to all users on both GitHub.com and GitHub Enterprise

Videos

Video Title Description
Organizing for Successful Collaboration Defining Organizations and Teams on GitHub
Continuous Integration & Continous Delivery Define these terms, why they're used, and the tools on GitHub to support them
Finding Things The tools that exist on GitHub that help you find what you're looking for
Getting Insight into Work A quick walkthrough of the various analysis tools on GitHub to help manage branches, commits and works in progress
@Shukuyen
Shukuyen / Brewfile
Last active March 3, 2022 20:37
Brewfile for quick setup of new Mac computers via brew, brew cask and mas-cli
# Requirements:
# homebrew - http://brew.sh/
# brew bundle - https://github.com/Homebrew/homebrew-bundle
# cask - https://caskroom.github.io/ (installed automatically)
# mas-cli - https://github.com/argon/mas
cask_args appdir: '/Applications'
tap 'caskroom/cask'
tap 'caskroom/versions'
brew 'bat'
@peff
peff / git-du
Last active May 17, 2019 07:43
git-du script
#!/usr/bin/perl
#
# Generate a listing of all paths ever used in the repository, along with the
# disk space used by the path throughout the entire history. Note that sizes
# for trees are cumulative; they include the sizes of all of the paths below
# them, in addition to the tree storage itself. All sizes are in bytes, and
# reflect git's delta and zlib compression.
#
# One caveat is that this is just the _current_ on-disk size. The on-disk size
# of each object may change if git repacks and chooses different delta bases,