Skip to content

Instantly share code, notes, and snippets.

This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer. It keeps repeating the question until it gets a valid answer.

@ispern
ispern / gist:5675447
Last active December 17, 2015 21:29
show FPS - Sencha Touch 2.2
Ext.Viewport.add([
{
id : 'currentFPS',
xtype : 'component',
bottom: 0,
right : 0,
width : 50,
height: 50,
style : 'background-color: red; color: white;'
},
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active July 29, 2025 11:23
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version