Skip to content

Instantly share code, notes, and snippets.

Avatar
Verified

Drew Hamlett drewhamlett

Verified
  • Untappd
  • Wilmington, NC
View GitHub Profile
View styles.css
.monaco-tree .monaco-tree-rows > .monaco-tree-row {
/* min-height: 25px; */
/* margin-bottom: 1px; */
/* font-size: 1.2em; */
/* padding-bottom: 2px; */
}
/* .monaco-list > .monaco-scrollable-element {
height: auto;
} */
@drewhamlett
drewhamlett / SelectUser.jsx
Created Feb 27, 2017
Object not updating component
View SelectUser.jsx
// Doesnt work
@inject('store')
@observer
class SelectUser extends Component {
onChange = (value) => {
this.props.store.user.update(value)
}
View keybase.md

Keybase proof

I hereby claim:

  • I am drewhamlett on github.
  • I am drewh (https://keybase.io/drewh) on keybase.
  • I have a public key whose fingerprint is 1751 ADC1 2FEA A96F FE8F BEF2 B2D0 7452 787B DBAA

To claim this, I am signing this object:

View gist:5665889
/*jslint node:true, nomen:true, vars:true */
'use strict';
var express = require('express'),
http = require('http');
app.use(require('./airplane'));
View test.html
<div ui-if="lines.length < 1">
<div class="alert">
<strong>Warning!</strong>Your personal database needs to be created before getting started. Please tap the "Create Database" button to begin.</div>
<button class="btn btn-success btn-large" fast-click="createDatabase()">Create Database</button>
</div>
<div ui-if="lines.length > 0">
<button class="btn btn-danger btn-large" fast-click="removeDatabase()">Remove Database</button>
View style.js
// -- Module creation
var Main;
(function (Main) {
var Person = (function () {
function Person(name) {
this.name = name;
}
Person.prototype.sayHello = function () {
return "Hello, " + this.name;
@drewhamlett
drewhamlett / Dynamic.scala
Created Sep 6, 2012
Render dynamic views with Play 2.0
View Dynamic.scala
package helpers
import play.api.Play
import play.Logger
import java.lang.reflect.Method
/**
* The Dynamic object is responsible for calling on static pages via a keyword
* This makes updating and adding pages easier without having to add routes for the pages
*/