This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Title: Simple Garmin tag for Jekyll | |
# Author: Ted Bradley http://monkeysandtea.com | |
# Description: easily embed a Garmin iframe using only the activity id. Has to be set to public though. | |
# | |
# Syntax {% garmin activityId [width height] %} | |
# | |
# Example: | |
# {% garmin 123456 465 548 %} | |
# | |
# Output: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"working_dir": "${project_path:${file_path}/..}", | |
"shell_cmd": "pebble build", | |
"file_regex": "^..\/(.+?):([0-9]+?):([0-9]+?): (.*)$" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[APP_LOG(APP_LOG_LEVEL_DEBUG, "${1:message}");]]></content> | |
<tabTrigger>log</tabTrigger> | |
<scope>source.c</scope> | |
<description>Pebble log statement</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pebblerun() | |
{ | |
pebble install --phone $1 | |
sleep 2 | |
pebble logs --phone $1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[APP_LOG(APP_LOG_LEVEL_DEBUG, "${1:message} %d %d %d %d", $2.origin.x, $2.origin.y, $2.size.w, $2.size.h);]]></content> | |
<tabTrigger>logrect</tabTrigger> | |
<scope>source.c</scope> | |
<description>Pebble rect log statement</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pebble = PBPebbleCentral.defaultCentral() | |
pebble.delegate = self | |
var uuidBytes = Array<UInt8>(count:16, repeatedValue:0) | |
let uuid = NSUUID(UUIDString: "acde6706-633f-404d-b99a-1fc57842593a") | |
uuid?.getUUIDBytes(&uuidBytes) | |
pebble.appUUID = NSData(bytes: &uuidBytes, length: uuidBytes.count) | |
watch = pebble.lastConnectedWatch() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a UICollectionViewCell | |
@IBOutlet weak var leftStatConstraint: NSLayoutConstraint! | |
leftStatConstraint = leftStatConstraint.reapplyToView(self.contentView, multiplier: leftMultiplier) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSThread.callStackSymbols().reduce("") { "\($0)\n\($1 as! String)" } |
OlderNewer