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
- (void) locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading { | |
[manager stopUpdatingLocation]; | |
occurrence.heading = [NSNumber numberWithDouble:[newHeading trueHeading]]; | |
[occurrence didReceiveNewData]; | |
} | |
- (void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { | |
[manager stopUpdatingHeading]; | |
occurrence.lat = [NSNumber numberWithDouble:newLocation.coordinate.latitude]; | |
occurrence.lon = [NSNumber numberWithDouble:newLocation.coordinate.longitude]; |
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
<OpenSearchDescription | |
xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>GitHub</ShortName> | |
<Description>Search GitHub</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16" type="image/x-icon"> | |
https://github.com/favicon.ico | |
21 | |
</Image> |
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
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub"> |
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
#import "TestHelper.h" | |
static int | |
beforeAllRan | |
, beforeEachRan | |
, example1RanCorrectly | |
, example2RanCorrectly | |
, afterEachRan | |
, afterAllRan | |
; |
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
$ heroku create --stack cedar --buildpack \ | |
https://github.com/danpalmer/heroku-buildpack-hammer.git site-name | |
$ git push heroku master | |
... | |
-----> Downloading Nginx Sources | |
... | |
-----> Extracting Nginx Sources | |
-----> Configuring | |
... |
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
#!/bin/sh | |
# bin/release <build-dir> | |
cat <<EOF | |
--- | |
config_vars: | |
PATH: ${HOME}nginx/sbin:/usr/local/bin:/usr/bin:/bin | |
default_process_types: | |
web: ./boot.sh | |
EOF |
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
worker_processes 1; | |
daemon off; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
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
#!/usr/bin/env bash | |
# bin/compile <build-dir> <cache-dir> | |
set -e | |
BUILD_DIR=$1 | |
CACHE_DIR=$2 | |
BUILDPACK_DIR=`cd $(dirname $0); cd ..; pwd` | |
SUPPORT_DIR="$BUILDPACK_DIR/support" |
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
#!/bin/sh | |
# bin/detect <build-dir> | |
# This buildpack is valid for use in project with a Build directory | |
if [ -d $1/Build ]; then | |
echo "Hammer Buildpack" | |
exit 0 | |
else | |
exit 1 | |
fi |
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
<script type="text/javascript" src="/js/jquery.complexify.js"></script> | |
<script type="text/javascript"> | |
$("#password").complexify({}, callback(valid, complexity){ | |
alert("Password complexity: " + complexity); | |
}); | |
</script> |