Skip to content

Instantly share code, notes, and snippets.

Andrew Dunkman adunkman

Block or report user

Report or block adunkman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adunkman
adunkman / lessjs.rb
Created Apr 14, 2011 — forked from andyfowler/lessjs.rb
Jekyll plugin to render LESS (lesscss.org) files during generation.
View lessjs.rb
module Jekyll
class LessCssFile < StaticFile
def write(dest)
# do nothing
end
end
class LessJsGenerator < Generator
safe true
@adunkman
adunkman / index.html
Created Jan 14, 2012
Relay messages from RabbitMQ to a browser using Socket.io
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
(function () {
var onMessage = function (data) {
// Do something with the message data
};
@adunkman
adunkman / index.html
Created Jan 14, 2012
Relay messages from RabbitMQ to a browser using Socket.io - client
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
(function () {
var onMessage = function (data) {
// Do something with the message data
};
@adunkman
adunkman / README
Created Apr 12, 2012
Detect ClickOnce support
View README
This detects the presence of ClickOnce in IE, Chrome (with extension), and
Firefox (with extension).
It doesn't work if Firefox is using Microsoft's .NET Framework Assistant when
adding .NET information to the User Agent string is turned off (the default
setting as of late). I personally worked around this by using server logic to
detect if the X-ClickOnceSupport header was set.
@adunkman
adunkman / gist:2580972
Created May 2, 2012 — forked from hellosmithy/transparency.styl
Cross-browser alpha transparent background CSS (rgba) Stylus mixin
View gist:2580972
// background transparency
background-transparency(color, alpha = 1)
ms-color = argb(color, alpha)
background rgb(color)
background rgba(color, alpha)
.lt-ie8 &
zoom 1
.lt-ie9 &
background transparent
filter s('progid:DXImageTransform.Microsoft.gradient(startColorstr=%s,endColorstr=%s)', ms-color, ms-color)
@adunkman
adunkman / proposal.md
Created May 4, 2012
StrangeLoop Session Proposal
View proposal.md

#Title TBD

###Abstract How many languages and APIs can we squeeze into an hour? Let's take a tour through as many popular REST APIs as we can by writing 5 minute applications in a variety of languages (JavaScript, Ruby, Python, C#, etc). We'll discuss some of the finer points of REST API design and why some languages are naturally better for consuming web services than others.

Talk Type: Survey
Track: /etc
Video Approval: Yes
Talk Duration: 50 minutes
@adunkman
adunkman / nginx.conf
Created May 14, 2012
Load balancing across applications with nginx
View nginx.conf
events {
worker_connections 1024;
}
http {
upstream appname {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
}
@adunkman
adunkman / README.md
Created Aug 20, 2012
Debugging Node.js Applications
View README.md

Packages reviewed

  1. node-inspector
  2. node-webkit-agent
  3. node-codein

node-inspector

Setup

@adunkman
adunkman / Product.wxs
Created Nov 2, 2012
Wix commands to auto-initialize an IIS website
View Product.wxs
<!-- Requires Application Initialization module in IIS 7.5 or (built in already to) IIS 8. -->
<!-- http://www.iis.net/downloads/microsoft/application-initialization -->
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product>
<!-- ... -->
<InstallExecuteSequence>
<Custom Action="CA.AppPoolSetStartMode" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom>
<Custom Action="CA.ApplicationSetPreloadEnabled" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom>
@adunkman
adunkman / gist:4164506
Created Nov 28, 2012
node-v0.8.11-x64.msi.log
View gist:4164506
=== Logging started: 11/28/2012 15:06:17 ===
Action start 15:06:17: INSTALL.
Action start 15:06:17: FindRelatedProducts.
Action ended 15:06:17: FindRelatedProducts. Return value 1.
Action start 15:06:17: LaunchConditions.
Action ended 15:06:17: LaunchConditions. Return value 1.
Action start 15:06:17: ValidateProductID.
Action ended 15:06:17: ValidateProductID. Return value 1.
Action start 15:06:17: CostInitialize.
Action ended 15:06:17: CostInitialize. Return value 1.
You can’t perform that action at this time.