Skip to content

Instantly share code, notes, and snippets.

View nessup's full-sized avatar

Danny Friday nessup

View GitHub Profile
@pyldin601
pyldin601 / AbstractRouterController.ts
Created September 25, 2018 08:00
inversify + koa + router
import * as Application from 'koa';
import * as KoaRouter from 'koa-router';
import { IRegistrableController } from './RegistrableController';
import { injectable } from 'inversify';
@injectable()
export abstract class AbstractRouterController implements IRegistrableController {
public abstract prefix: string;
public abstract setup(router: KoaRouter);
@kristopherjohnson
kristopherjohnson / KeyboardNotification.swift
Last active October 6, 2023 14:45
Swift convenience wrapper for the userInfo values associated with a UIKeyboard notification
import UIKit
/// Wrapper for the NSNotification userInfo values associated with a keyboard notification.
///
/// It provides properties that retrieve userInfo dictionary values with these keys:
///
/// - UIKeyboardFrameBeginUserInfoKey
/// - UIKeyboardFrameEndUserInfoKey
/// - UIKeyboardAnimationDurationUserInfoKey
/// - UIKeyboardAnimationCurveUserInfoKey
@okunishinishi
okunishinishi / Remove all git tags
Created March 8, 2014 03:12
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d