Skip to content

Instantly share code, notes, and snippets.

View itspriddle's full-sized avatar
🤘
clickity clack

Josh Priddle itspriddle

🤘
clickity clack
View GitHub Profile

http://hea-www.harvard.edu/~fine/OSX/unicode_apple_logo.html

  •  -  -  - the Apple Symbol
  • ⌘ - ⌘ - ⌘ - the Command Key symbol
  • ⌥ - ⌥ - ⌥ - the Option Key symbol
  • ⇧ - ⇧ - ⇧ - the Shift Key symbol
  • ⎋ - ⎋ - ⎋ - the Escape Key symbol

And while we're at it, some related (not mac-specific):

@drichert
drichert / post-checkout
Created April 27, 2011 21:18
git post-checkout hook for compressing javascript (via uglifyjs)
#!/bin/bash
branch=$(git symbolic-ref -q HEAD |sed 's/refs\/heads\///')
gitroot=$(git rev-parse --show-toplevel)
jsdir="js"
targetdir="$gitroot/$jsdir"
files=$(find $targetdir -maxdepth 1 -type f -name '*.js' ! \( -name '*.min.js' \))
echo -n "Uglifying javascript... "
for f in $files; do
@powdahound
powdahound / hipchat_bot.js
Created April 25, 2011 18:35
Basic XMPP bot example for HipChat using node.js
// Basic XMPP bot example for HipChat using node.js
// To use:
// 1. Set config variables
// 2. Run `node hipchat_bot.js`
// 3. Send a message like "!weather 94085" in the room with the bot
var request = require('request'); // github.com/mikeal/request
var sys = require('sys');
var util = require('util');
A is for awk, which runs like a snail, and
B is for biff, which reads all your mail.
C is for cc, as hackers recall, while
D is for dd, the command that does all.
E is for emacs, which rebinds your keys, and
F is for fsck, which rebuilds your trees.
G is for grep, a clever detective, while
H is for halt, which may seem defective.
I is for indent, which rarely amuses, and
J is for join, which nobody uses.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<title>CSS3 button example</title>
<link rel="stylesheet" href="css/reset.css" media="screen">
<style>
body {
background: #ddd;
# Dropbox.app removes ~/Library/Contextual\ Menu\ Items/DropboxPlugin.plugin each time it's opened.
# Putting the plugin in /Library/Contextual\ Menu\ Items and chowning it to root:admin seems to fix it.
cd /Library/Contextual\ Menu\ Items
sudo cp /Applications/Dropbox.app/Contents/Resources/DropboxPlugin.plugin.tgz .
sudo tar -vzxf DropboxPlugin.plugin.tgz
sudo rm DropboxPlugin.plugin.tgz
sudo chown -R root:admin DropboxPlugin.plugin
/**
* jQuery Time Helpers
*
* @author Joshua Priddle <jpriddle@nevercraft.net>
* @copyright Copyright (c) 2010, ViaTalk, LLC
* @version 0.0.1
*/
;(function($) {
$.toTimestamp = function(seconds) {
/**
* Titanium Mobile Utility Functions
*
* @author Joshua Priddle <jpriddle@nevercraft.net>
* @version 0.0.0
*/
var $ = {};
/**
class Integer
def to_minutes
min = (self / 60.floor)
sec = (self - (min * 60)).round
"%0-2d:%0-2d" % [min, sec]
end
end
My Old Cell Phone Usage
Received Calls: 24:24:39
Dialed Calls: 21:56:11
All Calls: 57:18:20
Transmit Data: 12,033 KB
Received Data: 9,743 KB
Total: 21,776 KB