Skip to content

Instantly share code, notes, and snippets.

View mwbrooks's full-sized avatar
🏠
Working from home

Michael Brooks mwbrooks

🏠
Working from home
View GitHub Profile
@mwbrooks
mwbrooks / app.py
Created October 5, 2020 22:52
Button click example using Bolt for Python
@app.action("button_click")
def action_button_click(body, ack, say):
# Acknowledge the action
ack()
say(f"<@{body['user']['id']}> clicked the button")

Keybase proof

I hereby claim:

  • I am mwbrooks on github.
  • I am mwbrooks (https://keybase.io/mwbrooks) on keybase.
  • I have a public key whose fingerprint is C28F 5906 C202 EAE7 3CC0 1230 CD57 9760 B735 6299

To claim this, I am signing this object:

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@mwbrooks
mwbrooks / read-config.js
Created January 16, 2014 22:22
Read config.json with the Web File API
function readFile(filepath, callback) {
window.requestFileSystem(
LocalFileSystem.PERSISTENT,
0,
function(fileSystem) {
fileSystem.root.getFile(
filepath,
null,
function gotFileEntry(fileEntry) {
fileEntry.file(
/*!
* Module dependencies.
*/
var connect = require('connect'),
http = require('http'),
app = connect();
/**
* Middleware #1
my-app:mwbrooks $ ./cordova/build qnx
Buildfile: /Users/mwbrooks/Dropbox/Development/lib/cordova-cli/lib/cordova-blackberry/my-app/build.xml
qnx:
build:
generate-cod-name:
[echo] Generated name: __NAME__.bar
$ npm test
> cordova@0.0.8 test /Users/mwbrooks/Dropbox/Development/lib/cordova-client
> node test_bootstrap.js && ./node_modules/jasmine-node/bin/jasmine-node --color spec
.shell.js: internal error
Error: ENOENT, no such file or directory '/Users/mwbrooks/Dropbox/Development/lib/cordova-client/temp/platforms/android/assets/www'
at Object.fs.mkdirSync (fs.js:483:18)
at /Users/mwbrooks/Dropbox/Development/lib/cordova-client/node_modules/shelljs/shell.js:297:14
at Array.forEach (native)
@mwbrooks
mwbrooks / apache-cordova-1.4-release-meeting.md
Created January 20, 2012 19:00
Meeting Notes for the Apache Cordova 1.4 Release

PhoneGap 1.4 Release Meeting

Attendance

Wiki

  • Style guide
  • Roadmap
  • Brian would like everyone to review it
@mwbrooks
mwbrooks / phonegap-issue-gardening-call-2011-11-28..md
Created November 28, 2011 20:12
PhoneGap Issue Gardening Call 2011-11-28

Goals for the call

  • Disable issues on GitHub/PhoneGap
  • Mirror issues from GitHub/Callback to JIRA
  • Typical issue gardening (culling, assign, prioritize, and update)

GitHub Issues

@mwbrooks
mwbrooks / gist:1153357
Created August 18, 2011 05:32
phonegap-android using CLI
#
# Based on the PhoneGap Android Terminal Quickstart Guide:
# http://wiki.phonegap.com/w/page/30864168/phonegap-android-terminal-quickstart
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Setting up your System
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# It's easier if you have the Android SDK in your PATH.