Install dependencies and run tests
rake
Dependencies, tests, archive in Release configuration and upload to TestFlight
rake testflight
#!/bin/bash | |
# Cobblestone: Bootstrap a Mac for Hacking & Development | |
# Cobble together a decent Mac Developer setup from scratch | |
# Author: Kayla Hinz | |
# LICENSE: MIT | |
# | |
# TODO: | |
# ANSI-Fun! |
angular.module('app.resources', ['ngResource']) | |
.factory('api', function ($resource) { | |
var api = { | |
defaultConfig : {id: '@id'}, | |
extraMethods: { | |
'update' : { | |
method: 'PUT' | |
} |
/* | |
* Bearer strategy for token authentication when accessing API endpoints | |
*/ | |
passport.use(new BearerStrategy( | |
function(token, done){ | |
try { | |
//we attempt to decode the token the user sends with his requests | |
var decoded = jwt.decode(token, tokenSecret); | |
//TODO: must check the token expiry and ensure the token is still valid |
# Ruby 1.9 using ruby-ni | |
# | |
# VERSION 0.0.1 | |
# | |
FROM base | |
MAINTAINER Ivan Acosta-Rubio "[email protected]" | |
ADD https://gist.github.com/ivanacostarubio/9309be8a79a94aafd02d/raw/8e84fac50a57a23f191eccf5e41bae4ecde80873/gistfile1.txt /etc/resolv.conf | |
# Installing basic stuf: wget, git, ruby |
# Cocoapods Notes | |
## For XCode 5 Dev Preview on Mavericks | |
If your dynamic frameworks in the Pods project are getting linked to OSX Frameworks instead of iOS, you can try reverting to an earlier version of Cocoapods (0.24.0) | |
- This is more of an XCode UI bug, than a real build problem, but at this point in time there is no work around in Cocoapods. Original Source: https://github.com/CocoaPods/CocoaPods/issues/1420#issuecomment-25561488 |
Google+ Domains API are meant to interact with your G+ accounts in the domain. With these APIs you can manage circles, read and write posts, shares, and comments etc.. more informations here
This tutorial is for creating an application that uses the Domains API, running on Google App Engine with python.
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
var mongoose = require('mongoose'); | |
mongoose.connect('localhost', 'testing_emitUpdate'); | |
var Schema = mongoose.Schema; | |
var schema = new Schema({ | |
name: String | |
}); | |
// plumbing | |
schema.pre('save', function (next) { |