Skip to content

Instantly share code, notes, and snippets.

@dsmrt
dsmrt / my-command.ts
Last active April 16, 2024 19:36
Yargs Typescript CommandModule Generics
import { CommandModule, Argv, Options, ArgumentsCamelCase } from 'yargs'
export interface MyOptions extends Options {
interactive: boolean
env: string
color: string
}
export class MyCommand<U extends MyOptions> implements CommandModule<{}, U> {
public command = 'my-cmd'
@notlion
notlion / .clang-format
Last active March 15, 2020 06:51
Cinder ClangFormat
---
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: false
AlignConsecutiveAssignments: false
AlignEscapedNewlinesLeft: false
AlignOperands: false
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
@jspahrsummers
jspahrsummers / GHRunLoopWatchdog.h
Created January 28, 2015 20:50
A class for logging excessive blocking on the main thread
/// Observes a run loop to detect any stalling or blocking that occurs.
///
/// This class is thread-safe.
@interface GHRunLoopWatchdog : NSObject
/// Initializes the receiver to watch the specified run loop, using a default
/// stalling threshold.
- (id)initWithRunLoop:(CFRunLoopRef)runLoop;
/// Initializes the receiver to detect when the specified run loop blocks for
@100ideas
100ideas / Compiling OpenCFU on os x.md
Last active August 29, 2015 14:04
Compiling OpenCFU on OS X

OpenCFU doesn't compile on OS.X without some changes to the makefile.

@qgeissmann & @zamanlh got it to work:

@LuisZaman sez:

"try: autoreconf; ./configure --without-gui; then see if you have makefile to clear openmp from!"

Better yet, @qgeissmann suggested fixing the Makefile.am itself.

@saetia
saetia / gist:1623487
Last active May 1, 2024 19:55
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat