Skip to content

Instantly share code, notes, and snippets.

gdb-7 vice-macosx-sdl-x86_64-2.4.7/x128.app/Contents/MacOS/x128
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
(progn (load "/Users/eric/.emacs.d/elpa/slime-20140913.730/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/var/folders/29/q5kzn0v96d7dqq4m8l8924cm0000gn/T/slime.10210"))
This is SBCL 1.2.2, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
*
" A very nice sequence Raimondi gave me, which (when the cursor is on a brace
" or other matchable delimiter) deletes the braces (and the lines they're on)
" and decreases the indent of what they used to contain. Clobbers marks a and
" A.
" TODO: Make this work with things like Ruby and Objective-C block
" delimiters. Currently this only detects (, [, or {.
function! Unblockify()
let l:is_on_last_line = 0
let l:current_char = getline('.')[col('.')-1]
let l:is_beginning_block_delim = l:current_char =~ '[([{]'
#!/bin/bash
# Some bash utility functions (and associated aliases) that can be convenient to
# have. Tested with 3.2.48(1)-release on Mac OS X 10.6.
# Add pathname to start or end of a path; take out existing copies first.
# Unfortunately, this doesn't handle weird cases like pathnames with : in
# them. A little experimentation shows that bash doesn't recognize those
# anyway.
add_to_path() {
# Problematic .inputrc
# Problem occurs with GNU bash, version 3.2.48(1)-release (i386-apple-darwin10.0) (Mac OS X 10.6)
"\e\e[A": beginning-of-line
"\e\e[B": end-of-line
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e(": kill-word
Tab: menu-complete
"\el": redraw-current-line
#!/usr/bin/env ruby1.9
# Extends Array#map to take symbols, without having to use & on them.
# I can't find any way to define this in Enumerable and then have it
# automatically get picked up by Array et al. Even when I defined this in a
# module (Enumerable or another) and then include it into Array, it doesn't
# seem to recognize the new method.
class Array
alias old_map map
def map(arg=nil)
set nocompatible
set hidden
" Create a key code for meta+supplied character, if in a terminal. (Not
" necessary in the GUI.)
function! MakeMetaCharacter(char)
if !has('gui_running')
if a:char == ">"
" Huge kludge! set can't deal directly with >, since it confuses it
" with the end delimiter (even if you use a backslash). This also
Pixel24 DecodePixel24(NSCoder *coder)
{
Pixel24 p;
[coder decodeValueOfObjCType:@encode(int) at:&p.r];
[coder decodeValueOfObjCType:@encode(int) at:&p.g];
[coder decodeValueOfObjCType:@encode(int) at:&p.b];
return p;
}
// #1. Original code (causes unrecognized selector exception):
[self setColor:DecodePixel24(coder)];
// #2. Dummy code that does work:
Pixel24 __tempPixel = {255, 255, 255};
[self setColor:__tempPixel];
// Code that should work, judging from the previous, but actually raises the
// same exception as in #1:
Pixel24 __tempPixel = {255, 255, 255};
scope = 'local'
lam = lambda do
puts scope
inner_lam = lambda do
puts scope
end
inner_lam[]
end