View controllers.js
1 2 3 4 5 6 7 8 9 10
angular.module('starter.controllers', [])
 
.controller('DashCtrl', function($scope, $http) {
//Get profile information
$http.get('https://teamtreehouse.com/chalkers.json').
success(function(data, status, headers, config) {
// this callback will be called asynchronously
// when the response is available
$scope.badges = data.badges;
}).
View controllers.js
1 2 3 4 5 6 7 8 9 10
angular.module('starter.controllers', [])
 
.controller('DashCtrl', function($scope) {})
 
.controller('ChatsCtrl', function($scope, Chats) {
// With the new view caching in Ionic, Controllers are only called
// when they are recreated or on app start, instead of every page change.
// To listen for when this page is active (for example, to refresh data),
// listen for the $ionicView.enter event:
//
View chalkers.json
1 2 3 4 5 6 7 8 9 10
{
"name": "Andrew Chalkley",
"profile_name": "chalkers",
"profile_url": "http://teamtreehouse.com/chalkers",
"gravatar_url": "https://uploads.teamtreehouse.com/production/profile-photos/26170/thumb_TeacherShoot-Andrew.jpg",
"gravatar_hash": "7139178cce7d4441b3ea43af22600e8b",
"badges": [
{
"id": 49,
"name": "Newbie",
View tab-dash.html
1 2 3 4 5
<ion-view view-title="Badges">
<ion-content class="padding">
</ion-content>
</ion-view>
View tab-dash.html
1 2 3 4 5 6 7 8 9 10
<ion-view view-title="Dashboard">
<ion-content class="padding">
<div class="list card">
<div class="item item-divider">Recent Updates</div>
<div class="item item-body">
<div>
There is a fire in <b>sector 3</b>
</div>
</div>
</div>
View keybase.md

Keybase proof

I hereby claim:

  • I am chalkers on github.
  • I am chalkers (https://keybase.io/chalkers) on keybase.
  • I have a public key whose fingerprint is 2600 A73C 2253 C3BE 9C90 7094 BE17 FA88 1D1E C04D

To claim this, I am signing this object:

View gist:7818873
1 2 3 4 5 6 7 8 9 10
"intensity" : "20",
"vectors" : "1",
"worksize" : "256",
"kernel" : "scrypt",
"lookup-gap" : "2,2",
"thread-concurrency" : "24000",
"shaders" : "0,0",
"gpu-engine" : "0-1085",
"gpu-fan" : "0-100",
"gpu-memclock" : "1375",
View basic_library.ino
1 2 3 4 5 6 7 8 9 10
#include <DigitalPin.h>
 
DigitalPin forward(13);
DigitalPin backward(12);
 
void setup(){
}
 
void loop() {
backward.off();
View gist:1435273
1 2 3 4 5 6 7 8 9
//Have a UIImage *image
 
NSDictionary *detectorOptions = [[NSDictionary alloc] initWithObjectsAndKeys:CIDetectorAccuracyHigh, CIDetectorAccuracy, nil];
 
CIDetector *faceDetector = [CIDetector detectorOfType:CIDetectorTypeFace context:nil options:detectorOptions];
 
CIImage *ciImage = [CIImage imageWithCGImage:[image CGImage]];
 
NSArray *features = [faceDetector featuresInImage:ciImage];
Something went wrong with that request. Please try again.