Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
site_id=flamingo_us
cas_base_url="https://customer-account-service.sandbox.core.harrys.systems/api/v1/sites/$site_id"
customer_id=`uuidgen`
verbose=-v
verbose=
# set -x
// Converted to Swift 4 by Swiftify v4.1.6680 - https://objectivec2swift.com/
import AVFoundation
import libkern
class FLTSavePhotoDelegate: NSObject, AVCapturePhotoCaptureDelegate {
private(set) var path = ""
private(set) var result = FlutterResult()
/// Used to keep the delegate alive until didFinishProcessingPhotoSampleBuffer.
private var selfReference: FLTSavePhotoDelegate?
@ryanhanks
ryanhanks / config.json
Last active June 3, 2016 08:14
BINDERS-379
{}

Technical Tasks

  • Figure out how to make wheels work well
  • Build a machine to host testing the workspace
  • Deploy to app engine better
  • use supervisord to start ngrok, bigsky, binder manager server, nginx, dartium, tee http://supervisord.org/, dump logs to /logs
  • build a new mininal datastore from scratch (locally and against an appspot remotely)
  • Move bam tool to CLI tool that's available anywhere and doesn't have to be ran from root of project http://click.pocoo.org/5/
  • build multiple things in parallel
  • Add logging to splunk
@ryanhanks
ryanhanks / .rvmrc
Created May 24, 2012 16:59
The Tom Cat Server Proxy
rvm use 1.9.3@tccs_proxy --create
@ryanhanks
ryanhanks / gist:2694426
Created May 14, 2012 14:55
Benchmarking
FactoryMonitor.benchmarks = []
FactoryMonitor.stack = []
def run_with_monitor
self.class.stack.push self.class.benchmarks
self.class.benchmarks = child_results = []
results = Benchmark.get
self.class.benchmarks = self.class.stack.pop
self.class.benchmarks << [factory_name, results, child_results]
end
class Feed
def page
@page ||= get_url
end
def posts
@posts ||= do
post_nodes.map do |post_node|
build_post(post_node)
end
class FidelityBondPrincipalAddressUpdatesController < CommandsController
filter_resource_access :additional_member => [ :execute ]
before_filter :set_updated_by
def after_execute_path
command.receiver
end
def after_execute_flash_message
Mbc::Application.routes.draw do
resources :fidelity_bonds do
resources :edits
member do
get :edit_principal
end
end
end
# routes.rb
resources :fidelity_bonds do
resources :edits
member do
get :edit_principal
end
end
# app/views/fidelity_bonds/edit_principal.html.haml
= simple_form_for @fidelity_bond, :url => fidelity_bond_edits_path(@fidelity_bond) do |f|