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
#ifndef CALCONSOLE_H | |
#define CALCONSOLE_H | |
/* Width of one month with backward compatibility */ | |
#define MONTH_WIDTH_B_J 27 | |
#define MONTH_WIDTH_B 20 | |
#define MONTH_WIDTH_J 24 | |
#define MONTH_WIDTH 18 | |
#define MAX_WIDTH 36 |
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
/*- | |
* Copyright (c) 1997 Wolfgang Helbig | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |
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
#!/bin/sh | |
cd $HOME/local/planeshift # The location of the planeshift SVN checkout | |
export LD_LIBRARY_PATH="$(pwd)/../cal3d/src/cal3d/.libs/:$(pwd)/../crystalspace/:$LD_LIBRARY_PATH" | |
export CRYSTAL=$(pwd)/../crystalspace | |
./psclient -cfgset=PlaneShift.UserConfigPath=$(pwd)/config |
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
#!/bin/sh | |
# planeshift.sh - A generic launcher for the ps* stuff in the SVN co. | |
# This file can be anywhere in the file system, just make sure PLANES (set below) is correct. | |
# Note: If you just copied/pasted the commands from the compiling guide, change the 2 export commands to | |
# use "../cs/" instead of "../crystalspace/" | |
# | |
# USAGE: ./planeshift.sh [setup|launch|client] | |
PLANES=$HOME/local/planeshift # The location of the planeshift SVN checkout |
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
January 2009 | |
Su Mo Tu We Th Fr Sa | |
1 *2* 3 | |
4 *5* 6 7 8 9 10 | |
11 12 13 14 15 16 17 | |
18 19 20 21 22 23 24 | |
25 26 27 28 29 30 31 | |
(Note, '*'s won't really appear, just that those dates were colored and * looks | |
better than ANSI escape sequences) |
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
#!/usr/bin/ruby | |
# Sample code to take a file formatted similarly to event.template and create an iCalendar VEVENT (using the Icalendar library) | |
require 'rubygems' | |
require 'icalendar' | |
require 'chronic' | |
require 'fileutils' | |
require 'lib/yaml' | |
require 'tempfile' |
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
# Contributor: Daenyth <Daenyth+Arch AT gmail DOT com> | |
pkgname=github-gem | |
pkgver=0.3.4 | |
pkgrel=1 | |
pkgdesc="Defunkt's Github ruby gem. The official 'github' command line helper" | |
arch=(any) | |
url="http://github.com/defunkt/github-gem" | |
license=('MIT') | |
depends=(ruby-json_pure) | |
makedepends=(rubygems) |
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
>> class Foo; class Bar; end; end | |
=> nil | |
>> Foo.superclass | |
=> Object | |
>> Foo::Bar.superclass | |
=> Object | |
>> Bar.superclass | |
NameError: uninitialized constant Bar | |
from (irb):8 | |
from :0 |
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
[conf] | |
foo = hi | |
[ready?] | |
help = RubyGems is a sophisticated package manager for Ruby. This is a basic help message containing pointers to more information. Usage: gem -h/--help gem -v/--version gem command [arguments...] [options...] Examples: gem install rake gem list --local gem build package.gemspec gem help install Further help: gem help commands list all 'gem' commands gem help examples show some examples of usage gem help platforms show information about platforms gem help <COMMAND> show help on COMMAND (e.g. 'gem help install') Further information: http://rubygems.rubyforge.org | |
[core] | |
globalignore = /home/colin/.gitignore |
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
#!/bin/bash | |
. /etc/rc.conf | |
. /etc/rc.d/functions | |
case "$1" in | |
start) | |
stat_busy "Starting Music Player Daemon" | |
/usr/bin/mpd /etc/mpd.conf &> /dev/null | |
if [ $? -gt 0 ]; then |