HLLAPI: High Level Language Application Programming Interface
Links:
http://www.serengeti.com/literature/winhllapi.pdf
http://www.sdisw.com/tn3270/whllapi3270cs.htm
#define WHLLDESCRIPTION_LEN 127
using System; | |
using System.Diagnostics; | |
namespace SunriseCalculator | |
{ | |
public class SolarInfo | |
{ | |
public double SolarDeclination { get; private set; } | |
public TimeSpan EquationOfTime { get; private set; } | |
public DateTime Sunrise { get; private set; } |
HLLAPI: High Level Language Application Programming Interface
Links:
http://www.serengeti.com/literature/winhllapi.pdf
http://www.sdisw.com/tn3270/whllapi3270cs.htm
#define WHLLDESCRIPTION_LEN 127
Map Kata | |
======== | |
* Given a simple grid, e.g. 10x10 | |
* Given a game piece is placed somewhere on the grid, e.g. 5,5 | |
* Given the piece canNOT be moved diagonally, e.g. one up, one left... | |
* Find all available squares the piece can move to in | |
** 1 move | |
** 2 moves | |
** etc... | |
** until you are thrilled with your solution or ready for something new |
# Author: Charles Strahan | |
# | |
# This can be used on Windows to determine if UAC is enabled, | |
# and whether the current process is elevated. | |
require 'ffi' | |
require 'win32/registry' | |
module UAC |
#!/usr/bin/env bash | |
# | |
# Supported Operating Systems: | |
# | |
# - Arch Linux | |
# - RedHat Based (CentOS, ...) | |
# - Debian Based (Ubuntu, ...) | |
# |
# Author: Charles Strahan | |
# License: The MIT License | |
class SudokuBoard | |
attr_reader :cells | |
attr_reader :size | |
def initialize(puzzle=nil) | |
self.puzzle = puzzle if puzzle | |
end |
# About: | |
# A flight planning algorithm, particularly useful for private pilots. | |
# The idea is that one might be interested in, say, flying into LED (in Russia) | |
# from DCA (in DC); bearing in mind that small aircraft can only go so far | |
# on a single tank of gas, this algorithm will perform the hard work of | |
# computing a rather tricky route. | |
# | |
# Concretely: | |
# Given a set of airports (and their code, latitude and longitude), | |
# find the shortest route between any given airport A and B, |
For each chapter:
(require 'sr-speedbar) | |
(setq speedbar-frame-parameters | |
'((minibuffer) | |
(width . 40) | |
(border-width . 0) | |
(menu-bar-lines . 0) | |
(tool-bar-lines . 0) | |
(unsplittable . t) | |
(left-fringe . 0))) |