Skip to content

Instantly share code, notes, and snippets.

View drewhamlett's full-sized avatar
Verified

Drew Hamlett drewhamlett

Verified
  • Untappd
  • Wilmington, NC
View GitHub Profile
@drewhamlett
drewhamlett / Dynamic.scala
Created September 6, 2012 15:01
Render dynamic views with Play 2.0
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
*/
// -- Module creation
var Main;
(function (Main) {
var Person = (function () {
function Person(name) {
this.name = name;
}
Person.prototype.sayHello = function () {
return "Hello, " + this.name;
<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>
/*jslint node:true, nomen:true, vars:true */
'use strict';
var express = require('express'),
http = require('http');
app.use(require('./airplane'));

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:

@drewhamlett
drewhamlett / SelectUser.jsx
Created February 27, 2017 18:38
Object not updating component
// Doesnt work
@inject('store')
@observer
class SelectUser extends Component {
onChange = (value) => {
this.props.store.user.update(value)
}
{
"version": "v1.0.0",
"notes": "Test version",
"pub_date": "2020-06-22T19:25:57Z",
"platforms": {
"darwin-aarch64": {
"signature": "",
"url": "https://github.com/tauri-apps/tauri-test/releases/download/v1.0.0/app-aarch64.app.tar.gz"
},
"darwin-x86_64": {
@drewhamlett
drewhamlett / styles.css
Last active March 18, 2024 17:21
VS Code
.monaco-tree .monaco-tree-rows > .monaco-tree-row {
/* min-height: 25px; */
/* margin-bottom: 1px; */
/* font-size: 1.2em; */
/* padding-bottom: 2px; */
}
.monaco-tl-row .label-name span {
/* color: black !important; */
}