Skip to content

Instantly share code, notes, and snippets.

View dpogue's full-sized avatar
👨‍💻
I may be slow to respond.

Darryl Pogue dpogue

👨‍💻
I may be slow to respond.
View GitHub Profile
@JordanReiter
JordanReiter / input-month-polyfill.js
Last active January 25, 2023 08:55
Polyfill for input type="month" with no dependencies.
(function() {
var monthInputs = document.querySelectorAll('input[type="month"]'),
checkDateInput = document.createElement('input'),
dateSupported = false,
months = [],
lang = document.documentElement.lang || navigator.language,
DEFAULT_SPAN = 5;
if (monthInputs[0].type === 'month') {
// browser supports month input; no need for polyfill
@nbasham
nbasham / UIColor.swift
Last active December 18, 2023 21:04
Swift 4: Convert CSS color names and RGB hex values to UIColor. UIColor from hex 3, 4, 6, and 8 characters in length with or without # prefix. UIColor to hex. UIColor extension that creates immutable UIColor instances from hexadecimal and CSS color name strings (e.g. ff0, #f00, ff0000, ff0000ff, Pink, aZure, CLEAR, nil). Conversely, you can obta…
//
// UIColor.swift
// previously Color+HexAndCSSColorNames.swift
//
// Created by Norman Basham on 12/8/15.
// Copyright ©2018 Black Labs. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights

High-priority pipeline things

  • Rewrite the texture loading entirely
  • Support CubicEnvironmaps with textureCube
  • Basic lighting support
  • Finish the final few blend modes
  • Add fog support to the shader
  • Handle the piggybacks for lightmaps

Chrome on OSX

  • sans-serif 100 = Helvetica Light
  • sans-serif 200 = Helvetica Light
  • sans-serif 300 = Helvetica Light
  • sans-serif 400 = Helvetica Regular
  • sans-serif 500 = Helvetica Regular
  • sans-serif 600 = Helvetica Bold
  • sans-serif 700 = Helvetica Bold
@mwheeler
mwheeler / ActionBarExample.java
Last active December 15, 2015 02:09
cordova-android-actionbar ActionBar Sherlock example
// Copyright (C) 2013 Polychrom Pty Ltd
//
// This program is licensed under the 3-clause "Modified" BSD license,
// see LICENSE file for full definition.
package com.polychrom.examples;
import java.util.concurrent.ExecutorService;
import android.app.Activity;
@dpogue
dpogue / plVersion.txt
Created February 4, 2013 07:01
Plasma 2.0 File Format Version Changelog
1 2001-05-08 Paulg Added version Number
1 2001-05-08 Paulg Added version Number
2 2001-05-09 mcn Changed color components of drawableSpans
2 2001-05-11 mf Changed sortable mesh format by 2 bytes.
0 2001-05-11 mf Dropped back to zero on Major Version change
3 2001-05-14 Paulg Index files Location is used for ReadConfig at Client Startup, RoomLoc added to Index
4 2001-05-21 matt Fixed errant bounding types for physicals (old bad codes will choke)
@willnix
willnix / GmusicDL
Created August 6, 2011 22:35
GMusic Download
#!/usr/bin/env python
import sys,re,time,os
import urllib,urllib2,cookielib
import xml.dom.minidom
from ID3 import *
try:
import json
except ImportError,e:
var hasFlash = false;
if (navigator.plugins && navigator.plugins.length) {
if (navigator.plugins['Shockwave Flash']) {
hasFlash = true;
}
} else if (navigator.mimeTypes && navigator.mimeTypes.length) {
var mimeType = navigator.mimeTypes['application/x-shockwave-flash'];
hasFlash = mimeType && mimeType.enabledPlugin;
} else {
try {