As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs 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
| #!/bin/sh -e | |
| # | |
| # Usage: browser | |
| # pipe html to a browser | |
| # e.g. | |
| # $ echo '<h1>hi mom!</h1>' | browser | |
| # $ ron -5 man/rip.5.ron | browser | |
| if [ -t 0 ]; then | |
| if [ -n "$1" ]; then |
| <?php | |
| /* | |
| How to use: | |
| Get this british words dictionary from here: http://www.curlewcommunications.co.uk/wordlist.html | |
| IN PHP install the mypeb extension from source: | |
| http://code.google.com/p/mypeb/ |
| local function ReadInt(str) | |
| local t = {} | |
| for w in str:gmatch(".") do table.insert(t, w:byte()) end | |
| return t[1]+t[2]*256+t[3]*256^2+t[4]*256^3 | |
| end | |
| local function num_args(func) | |
| local ok = pcall(function() string.dump(func) end) | |
| if not ok then return "?" end | |
| local dump = string.dump(func) |
| /* ---------------------------------------------------------------------------------------------------- | |
| Super Form Reset | |
| A couple of things to watch out for: | |
| - IE8: If a text input doesn't have padding on all sides or none the text won't be centered. | |
| - The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders. | |
| - You NEED to set the font-size and family on all form elements | |
| - Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| app@li203-130:~$ sudo apt-get install percona-server-server | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| The following packages were automatically installed and are no longer required: | |
| mysql-client-core-5.1 libdbd-mysql-perl mysql-server-core-5.1 | |
| Use 'apt-get autoremove' to remove them. | |
| The following extra packages will be installed: | |
| percona-server-client-5.1 percona-server-server-5.1 | |
| Suggested packages: |
| /*! | |
| * JavaScript detach - v0.2 - 5/18/2011 | |
| * http://benalman.com/ | |
| * | |
| * Copyright (c) 2011 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| */ | |
| function detach(node, async, fn) { |
| var $ = require('./') | |
| $.import('Foundation') | |
| $.import('Cocoa') | |
| var pool = $.NSAutoreleasePool('alloc')('init') | |
| var app = $.NSApplication('sharedApplication') | |
| var style = $.NSClosableWindowMask | $.NSResizableWindowMask | |
| | $.NSTexturedBackgroundWindowMask | $.NSTitledWindowMask | |
| | $.NSMiniaturizableWindowMask |
| import javafx.scene.layout.StackPane; | |
| import javafx.scene.web.WebView; | |
| /** | |
| * A syntax highlighting code editor for JavaFX created by wrapping a | |
| * CodeMirror code editor in a WebView. | |
| * | |
| * See http://codemirror.net for more information on using the codemirror editor. | |
| */ | |
| public class CodeEditor extends StackPane { |