Skip to content

Instantly share code, notes, and snippets.

⌨️
mashing my keyboard

Evan Purkhiser EvanPurkhiser

View GitHub Profile
View gist:5ba81cb7ff9b4fbf574215e2ea151cc7
evan on server ☳ › /usr/bin/find /mnt/documents/ -type f -name '._*' -or -name .DS_Store
/mnt/documents/multimedia/videos/series/Game of Thrones/._S2_E09.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S3_E10.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S2_E07.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S1_E02.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S3_E01.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S2_E08.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S3_E09.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S3_E03.mkv
/mnt/documents/multimedia/videos/series/Game of Thrones/._S3_E04.mkv
View test.rst

Sentry

Users and logs provide clues. Sentry provides answers.

View gist:cd9b884a90a6ef7d426198c781a7a1c9
sentry on evanp-work 🐍 › git shortlog -sne
11221 David Cramer <dcramer@gmail.com>
1803 Matt Robenolt <matt@ydekproductions.com>
1716 ckj <chriskjennings@gmail.com>
1458 Armin Ronacher <armin.ronacher@active-4.com>
777 Billy Vong <billyvg@users.noreply.github.com>
740 Lyn Nagara <lyn.nagara@gmail.com>
652 Ben Vinegar <ben@benv.ca>
493 Evan Purkhiser <evanpurkhiser@gmail.com>
412 Jess MacQueen <jessmacqueen@gmail.com>
View eslintrc.js
/*eslint-env node*/
/*eslint import/no-nodejs-modules:0 */
const path = require('path');
const config = {
extends: ['sentry-app'],
globals: {
GSTestStubs: true,
MockApiClient: true,
require: false,
View webpack.js
const localeCatalog = JSON.parse(fs.readFileSync(localeCatalogPath, 'utf8'));
// moment uses a lowercase IETF language tag, while django uses the underscore
// with uppercase syntax
const normalizeLocale = locale => locale.toLowerCase().replace('_', '-');
const supportedLocales = localeCatalog.supported_locales;
const normalizedSuppotedLocales = supportedLocales.map(normalizeLocale);
// A mapping of chunk groups used for locale code splitting
View test.jsx
const translateX = x => `translateX(${x === 'middle' ? '-50%' : 0})`;
const slideTranslateY = y => `translateY(${{top: -1, bottom: 1}[y] * 14}px)`;
const slideIn = p => keyframes`
from {
transform: ${translateX(p.position.x)} ${slideTranslateY(p.position.y)};
}
to {
transform: ${translateX(p.position.x)} translateY(0;
}
View thing.py
class ClientTokenRefresh(object):
"""
ClientTokenRefresh provides functionality to refresh Identity and
Integration access tokens for integration API clients.
Not all integrations will need this as some use non-expiring tokens.
"""
@classmethod
def check_auth(cls, model, force_refresh=False, refresh_strategy=None, **kwargs):
"""
View gist:a74e7d3b166b0492fe4f936a688b7936

Pioneer prolink-tools

Build Status

Prolink Tools is a collection of software that can be used to interact with the Pioner Pro DJ Link functionality that many of Pioneer's DJ equipment is compatable with.

  • prolink-server
View derp.go
struct CircutBreakerDB {
db.NormalDbInterface // Whatever this is actually called, the interface
}
func (db *CircutBreakerDB) MethodYourOverriding(whatever args) {
db.NormalDbInterface.MethodYourOverriding(...)
}
View README.md

Reproduction case for the error:

yarn install --ignore-optional
yarn install v1.2.0
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
[1/1] ⠄ phantomjs-prebuilt
You can’t perform that action at this time.