Skip to content

Instantly share code, notes, and snippets.

View adelevie's full-sized avatar

Alan deLevie adelevie

View GitHub Profile
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
Last login: Thu Aug 27 17:02:29 on ttys002
➜ ~ cd iaa-mvp
➜ iaa-mvp git:(master) ✗ cf logs iaa-mvp --recent
Connected, dumping recent logs for app iaa-mvp in org agile-bpa / space production as deploy-agile-bpa...
2015-08-27T16:52:26.52-0400 [API/0] OUT Updated app with guid e29af396-92a6-4fd7-a594-0d258bce8e2f ({"state"=>"STARTED"})
2015-08-27T16:53:48.06-0400 [API/0] OUT App instance exited with guid e29af396-92a6-4fd7-a594-0d258bce8e2f payload: {"cc_partition"=>"default", "droplet"=>"e29af396-92a6-4fd7-a594-0d258bce8e2f", "version"=>"a97fb6c1-e331-4267-827a-1ea107d89739", "instance"=>"7ad66bb334714b2489109fad5f543642", "index"=>0, "reason"=>"CRASHED", "exit_status"=>8, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1440708828}
2015-08-27T16:54:09.10-0400 [DEA/1] OUT Starting app instance (index 0) with guid e29af396-92a6-4fd7-a594-0d258bce8e2f
2015-08-27T16:54:25.97-0400 [App/0] ERR
2015-08-27T16:54:25.97-0400 [App/0] ERR /ho
@adelevie
adelevie / droid.xml
Created February 17, 2014 18:19
Start with droid.xml, then feed it to the jsx processor, which outputs plain JS. Write functions that create an HTML equivalent of an android textview. droid.xml -> web.jsx -> web.js -> web.html
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, I am a TextView" />
<Button android:id="@+id/button"
android:layout_width="wrap_content"
@adelevie
adelevie / foo.jsx
Last active August 29, 2015 13:56
var InputWrapper = React.createClass({
render: function() {
return (<input type="text" {this.props.?something?}>{this.props.children}</input>);
}
});
<InputWrapper name="foo" /> // how can name:'foo' get passed into the <input> tag?
var page = {
route: '/posts/:id',
client: function(id) {
console.log(id);
React.renderComponent(
<Widget clientOrServer="client" postId={id} />,
document.getElementById('client')
);
},
server: function(req, res, id) {

Paris

  • Chapter 6: Issuer of a Bond and its Choices
  • Focus: Chapter 8, logical next step after chapter 6 in terms of adding new parts to the bond itself. The machinery of the bond.
  • Skim: Chapter 9, Chapter 10
@adelevie
adelevie / dev.md
Last active August 29, 2015 13:58

JS:

@adelevie
adelevie / index.html
Created May 2, 2014 21:47
starter layout
<html>
<head>
<link href="http://netdna.bootstrapcdn.com/bootswatch/3.1.1/cosmo/bootstrap.min.css" rel="stylesheet">
<head>
<body>
<div class="container">
<div class="row clearfix">
<div class="col-md-6 column">
<h2>
Heading
// ...
logIn: function(event) {
var ctx = this;
OAuth.popup('github', function(error, result) {
if (error) { alert(error); }
ctx.setState({
loggedIn: true,
accessToken: result.access_token
});
});
➜ answers git:(feature/brakeman) rspec spec/security/brakeman_spec.rb
DEPRECATION WARNING: ActiveAdmin::Dashboard is deprecated and will be removed in the next version
.FFF
Failures:
1) Answers returns zero high confidence model warnings
Failure/Error: expect(checks.model_warnings.length).to(eq(0), "Run `rake 'security:models[0]'` to debug.")
Run `rake 'security:models[0]'` to debug.
# ./spec/security/brakeman_spec.rb:19:in `block (2 levels) in <top (required)>'