Skip to content

Instantly share code, notes, and snippets.

View knpwrs's full-sized avatar

Ken Powers knpwrs

View GitHub Profile
@knpwrs
knpwrs / woodo
Last active August 29, 2015 14:24
Sudowoodo
#!/usr/bin/env sh
# From http://redd.it/3cszgd
if [ $EUID != 0 ]; then
echo "It's a weird tree."
else
echo ' _ __'
echo ' / `\ (~._ ./ )'
echo ' \__/ __`-_\__/ ./'
echo ' _ \ \/ \ \ |_ __'
@knpwrs
knpwrs / https.coffee
Last active December 11, 2015 16:09
This is an example showing how to create an HTTPS server in node. It also listens on HTTP and redirects users to the HTTPS page. You can test this example using self-signed certificates (follow the instructions at https://devcenter.heroku.com/articles/ssl-certificate-self to generate your own self-signed certificates). Tested and working in node…
# Dependencies
fs = require 'fs'
https = require 'https'
http = require 'http'
# Variables
SECURE_PORT = 8443
INSECURE_PORT = 8080
HOST = 'localhost'
MESSAGE = 'Hello, Secure World!'
@knpwrs
knpwrs / MultiModule.coffee
Created January 26, 2013 20:54
These files demonstrate how to make JavaScript / CoffeeScript modules which work in CommonJS, AMD, and vanilla browser environments.
((name, global, definition) ->
if module?
module.exports = definition()
else if define? and typeof define.amd is 'object'
define definition
# alternatively define name definition
else
global[name] = definition()
)('name', @, ->
# return module definition here

Keybase proof

I hereby claim:

  • I am knpwrs on github.
  • I am knpwrs (https://keybase.io/knpwrs) on keybase.
  • I have a public key ASDVcUXtlPO_iG4YeU0jQ52dGB6K8kuHUFXBKudi53cVzAo

To claim this, I am signing this object:

@knpwrs
knpwrs / Export and Crop.workflow.zip
Last active November 17, 2018 21:03
Export slide images from keynote and crop to a specific size.
@knpwrs
knpwrs / data.json
Last active February 15, 2024 04:53
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.