Skip to content

Instantly share code, notes, and snippets.

View nogweii's full-sized avatar
🍀

Nogweii nogweii

🍀
View GitHub Profile
#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
/*-
* 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
#!/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
#!/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
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)
#!/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'
# 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)
>> 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
@nogweii
nogweii / latest-output
Created April 29, 2009 21:07
Attempt at creating a shell-based templating system
[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
@nogweii
nogweii / gist:106021
Created May 3, 2009 15:21
Replacement for /etc/rc.d/mpd that stops the music to prevent it from starting at boot
#!/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