Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / getEmacsColors.el
Created August 8, 2010 06:32
Get Emacs defined colors in a JavaScript hash
(progn
;; The number of defined-colors ... probably won't need this... :)
;; (setq c (list-length (defined-colors)))
(insert "var emacsColors = [\n")
;;(setq beg (point))
(loop for c in (defined-colors)
@jasonm23
jasonm23 / hideshowvis.el
Created August 9, 2010 04:45
Hideshowvis.el - fork development
;;; hideshowvis.el --- Add markers to the fringe for regions foldable by hideshow.el
;;
;; Copyright 2008-2012 Jan Rehders
;;
;; Author: Jan Rehders <[email protected]>
;; Contributions by Bryan Waite and Michael Heerdegen
;;
;; Version: 0.4
;; Additional contributions: 2010, 2012, Jason Milkins.
;;
@jasonm23
jasonm23 / screen.css
Created August 10, 2010 05:49
markdown friendly css
html { font-size: 62.5%; }
html, body { height: 100%; }
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 150%;
line-height: 1.3;
color: #f6e6cc;
width: 700px;
margin: auto;
@jasonm23
jasonm23 / choose
Created August 11, 2010 22:07
yasnippet snippet-mode
# yasnippet: snippet-mode
# name: choose
# --
\${$1:$$(yas/choose-value '( $0 ))\}
@jasonm23
jasonm23 / gist:552579
Created August 27, 2010 01:19
htmlEntitiesReplaceMap for Emacs
(setq htmlEntitiesReplaceMap
'(
["\"" "&quot;"]
["&" "&amp;"]
["'" "&apos;"]
["<" "&lt;"]
[">" "&gt;"]
["¡" "&iexcl;"]
["¢" "&cent;"]
["£" "&pound;"]
@jasonm23
jasonm23 / gist:557107
Created August 30, 2010 06:44
keyboard shortcuts for iphone
http://www.labnol.org/software/keyboard-typing-shortcuts-for-iphone-ipad/13564/
@jasonm23
jasonm23 / dprop.yasnippet.cs
Created September 9, 2010 07:41
wpf dependency property template for yasnippet
#name: DependencyProperty
# --
public static readonly DependencyProperty ${1:name}Property =
DependencyProperty.Register(
"$1",
typeof(${2:type}),
typeof(${3:enclosingType}));
public $2 $1
{
@jasonm23
jasonm23 / move-text.el
Created October 4, 2010 22:29
move-text.el for emacs.
(defun move-text-internal (arg)
(cond
((and mark-active transient-mark-mode)
(if (> (point) (mark))
(exchange-point-and-mark))
(let ((column (current-column))
(text (delete-and-extract-region (point) (mark))))
(forward-line arg)
(move-to-column column t)
(set-mark (point))
@jasonm23
jasonm23 / sockpuppet.el
Created October 11, 2010 01:55
Sockpuppet ... simple socket chat client
;;; sockpuppet.el - Emacs client interface for sockpuppet chat server
(defconst sockpuppet-version "0.8.0")
;; Copyright (c)2010 Jasonm23. (by)(nc)(sa) Some rights reserved.
;; Author: Jasonm23 <[email protected]>
;; This file is not part of GNU Emacs.
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@jasonm23
jasonm23 / HudsonJob.mxml
Created October 13, 2010 00:16
A simple framework for building a Hudson Status Monitor
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="false">
<s:Group width="600"
height="70">
<s:Rect width="100%"
height="100%"
radiusX="6"