Skip to content

Instantly share code, notes, and snippets.

View alunny's full-sized avatar

Andrew Lunny alunny

  • Twitter
  • San Francisco, CA
View GitHub Profile
@alunny
alunny / r_rambo.js
Created July 18, 2013 04:55
regex to match Rambo movie titles
/^(Rambo(?!F| P)(: (?=F))?)?(First Blood(?=$| P))?(( Part II)|( III))?$/
@alunny
alunny / npm output
Created June 21, 2013 02:07
npm install nodeconf2013
npm http GET https://registry.npmjs.org/nodeconf2013
npm http 401 https://registry.npmjs.org/nodeconf2013
npm http GET https://registry.npmjs.org/nodeconf2013
npm http 401 https://registry.npmjs.org/nodeconf2013
npm ERR! Error: unauthorized Name or password is incorrect.: nodeconf2013
npm ERR! at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:272:14)
npm ERR! at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/index.js:148:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/index.js:876:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
// all pseudo-code
document.addEventListener('deviceready', function (e) {
if (device.platform == 'android') {
window.plugins.pushNotification.register({
senderID: 'asdf@asdf.com',
onevent: onEvent,
onsuccess: onRegister,
onerror: onFail
});
} else {
{
"config-file": {
"target": "AndroidManifest.xml",
"parent": "/manifest/application",
"childNode": {
"activity": {
"android:name": "com.phonegap.plugins.childBrowser.ChildBrowser",
"android:label": "@string/app_name",
"childNode": {
"intent-filter": {}
I'm lost, I hope you can support developers and always support you product VIP user some
development platform to achieve the purpose of mutual benefits, the power of cooperation is huge,
the talents cultivated fields to this influence is huge, improve the product influence, in order
to expand the outstanding products market, income, there is power, to know each use your product
users is not necessarily design category, based on the amateur, very likely is a use of the
products of the traveler, because can realize product function software has a lot of, the lovers
become professionals, professionals have income, and are part of the fan, the lover be
propagandist, propagandist have advertising revenue, also become the product sellers, thank you
letter, small proposal, for reference purposes only!
@alunny
alunny / .tmux.conf
Created August 19, 2012 06:23
my tmux conf
# using patch from https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard.git
# fixes pbpaste + pbcopy
set-option -g default-command "reattach-to-user-namespace -l bash"
set -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
# important!
bind-key d confirm-before -p "detach-client? (NO) (y/n)" detach-client
var nodes = require('./nodes'), // a list of remove servers
f = require('util').format,
spawn = require('child_process').spawn,
platform = process.argv[2],
env = process.argv[3],
server = process.argv[4],
user, host, cmd;
if (!platform || !env) {
console.error('usage: node do-ssh.js PLATFORM ENV SERVER');
https://groups.google.com/group/phonegap
to
https://groups.google.com/forum/?fromgroups#!forum/phonegap
@alunny
alunny / slides.md
Created July 23, 2012 19:45
PhoneGap Day Talks
@alunny
alunny / index.html
Created May 25, 2012 21:47
resume and online events
<html>
<head></head>
<body>
<h1>Resume and Online Events Demo</h1>
<p>alerts should appear on these events</p>
</body>
<script src="phonegap.js"></script>
<script>