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
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
<fontconfig>
<!-- Modern generic that `-apple-system` maps to in Chrome -->
<alias>
<family>system-ui</family>
<prefer>
<family>SF Pro Display</family><!-- big sizes -->
<family>SF Pro Text</family> <!-- ≤20 px, optional -->
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Full hinting keeps strokes aligned to pixels -->
<match target="font">
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
@drewhamlett
drewhamlett / enemy.rb
Last active January 23, 2025 03:03
enemy.rb
class Entity
def initialize(x, y)
@default_fade_time = 50
@fade_timer = nil
@default_pulse_timer = Utils.random(100, 150)
@pulse_timer = @default_pulse_timer
end
def fade_complete?
return if @fade_timer.nil?
{
"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 August 25, 2024 13:32
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; */
}
@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)
}

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:

/*jslint node:true, nomen:true, vars:true */
'use strict';
var express = require('express'),
http = require('http');
app.use(require('./airplane'));
<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>
// -- Module creation
var Main;
(function (Main) {
var Person = (function () {
function Person(name) {
this.name = name;
}
Person.prototype.sayHello = function () {
return "Hello, " + this.name;