This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; git-tools.el --- Some handy git-related commands | |
;; Copyright 2009 Eric Kidd | |
;; Author: Eric Kidd <http://www.randomhacks.net/> | |
;; Keywords: git | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) | |
;; any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Move all origin/* refs to the top level and remove the remote. | |
# Basic idea by Johannes Schindelin, some tweaks by me. | |
git_make_origin_refs_local() { | |
git for-each-ref refs/remotes/origin/ > .git/origin-refs && | |
while read sha1 type ref; do | |
test "$ref" != refs/remotes/origin/HEAD || continue | |
git update-ref "refs/heads/${ref#refs/remotes/origin/}" "$ref" | |
done < .git/origin-refs && | |
rm .git/origin-refs && | |
git remote rm origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
# $Id$ | |
PortSystem 1.0 | |
name log4cplus | |
version 1.0.3-rc9 | |
categories devel | |
maintainers randomhacks.net:macports | |
description Logging library for C++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Insert somewhere in test/scripts/features.ss to test. | |
(card /features/http (%standard-test-card% :title "HTTP") | |
(edit-box result | |
((inset-rect $screen-rect 50) | |
"" | |
:multiline? #t | |
:font-size 12)) | |
(run | |
(with-values [[tcp-in tcp-out] | |
(tcp-connect "iml.dartmouth.edu" 80)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: My big essay | |
comments: enabled | |
This is my big essay. | |
<!--more--> | |
This is the rest. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Demonstration script for http://github.com/emk/blogitr | |
require 'rubygems' | |
require 'sinatra' | |
require 'blogitr' | |
$blog = Blogitr::Blog.new(File.dirname(__FILE__)) | |
helpers do | |
def article_url article | |
dir = article.date_time.strftime("/%Y/%m/%d") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helpers do | |
# Construct a link to +url_fragment+, which should be given relative to | |
# the base of this Sinatra app. The mode should be either | |
# <code>:path_only</code>, which will generate an absolute path within | |
# the current domain (the default), or <code>:full_url</code>, which will | |
# include the site name and port number. The latter is typically necessary | |
# for links in RSS feeds. Example usage: | |
# | |
# link_to "/foo" # Returns "http://example.com/myapp/foo" | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>My blog</title> | |
</head> | |
<body> | |
<div class='container'> | |
<div class='header'> | |
<h1>My blog</h1> | |
</div> | |
<div class='content'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fill in multiple form fields using a table. Use it as follows: | |
# | |
# When I fill in the fields | |
# | Field 1 | Value 1 | | |
# | Field 2 | Value 2 | | |
When /^I fill in the fields$/ do |table| | |
table.rows_hash.each {|field, value| fill_in field, :with => value } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/stc/scintilla/src/LexLisp.cxx b/src/stc/scintilla/src/LexLisp.cxx | |
index 1072e13..8784e38 100644 | |
--- a/src/stc/scintilla/src/LexLisp.cxx | |
+++ b/src/stc/scintilla/src/LexLisp.cxx | |
@@ -100,6 +100,9 @@ static void ColouriseLispDoc(unsigned int startPos, int length, int initStyle, W | |
styler.ColourTo(i - 1, state); | |
radix = -1; | |
state = SCE_LISP_MACRO_DISPATCH; | |
+ } else if (ch == ':' && isLispwordstart(chNext)) { | |
+ styler.ColourTo(i - 1, state); |