Skip to content

Instantly share code, notes, and snippets.

var policy = require('s3-policy');
var Route = require('project-router').Route;
var S3_BUCKET_NAME = process.env.S3_BUCKET_NAME;
var S3_KEY = process.env.S3_KEY;
var S3_SECRET = process.env.S3_SECRET;
var PUBLIC_READ_ACL = 'public-read';
module.exports = Route.extend({
db:
image: postgres
ports:
- "5432"
redis:
image: redis
ports:
- "6379"
sidekiq:
build: ./mine-api

iOS Router Thoughts

We don't have a clear, flexible solution for transitioning between screens. These are some thoughs of what we need.

Transtion to any screen, from any screen

For example, a username can appear on various screens. Tapping the username results in transtioning to the UserDetail screen ragardless of what the current screen.

// This should be possible from any RouteContext
this.router.push(.UserDetail, model: user)
import Ember from 'ember';
export default Ember.Component.extend({
classNames: 'uploadThumbnail',
classNameBindings: ['upload.isLoaded'],
backgroundImageStyle: function () {
if (this.get('localFileUrl')) {
extension DataStore {
enum Endpoint {
case OrganizationPosts(String)
case LikePost(Int)
case CreatePost
case CreatePostComment(Int)
case GetPostComments(Int)
@moudy
moudy / gist:0098b07fc9a22fe529bd
Created February 19, 2015 17:08
openname verification
Verifying that +moudy is my openname (Bitcoin username). https://onename.com/moudy
# Usage
ProfileQuery.call(1)
# Object
class ProfileQuery
def self.call(options)
new(options).call
end
def initialize(profile_id)
process.on('uncaughtException', function(err) {
console.log('Threw Exception: ', err, err.stack);
});
class CommentsTableViewBackgroundView: UIView {
dynamic var isEmpty = true
dynamic var isLoading = false
let activityIndicator = UIActivityIndicatorView(activityIndicatorStyle: .WhiteLarge)
lazy var label: UILabel = {
let label = UILabel()
<FilesMatch "\.(eot|woff|svg|ttf)$">
RewriteEngine On
# Let proxy servers with empty referer through
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:FORWARDED-FOR} !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED} !^$ [OR]