Skip to content

Instantly share code, notes, and snippets.

@Yanrishatum
Yanrishatum / hlc.md
Last active May 20, 2024 17:26
How to compile HL/C

How to compile HL/C

Prepwork/terms

Because I have no trust in people.

  • <hashlink> points to your installation of Hashlink, e.g. folder in which hl.exe (or Unix executable) is, alongside with library binaries (.hdll files), and include folder.
  • <src> points to the folder containing generated HL/C sources. One that contains hlc.json file.
  • <app> refers to your output executable name, including extension.
  • <main> refers to your entry-point file name, including extension (see below).
  • I provide example of doing it on Windows via MSVC cl.exe, but Unix should be more or less same with replacement of argument flags and compiler.
  • I expect that you DO have a compiler installed and can call cl.exe or other compiler from command-line.
@weibel
weibel / geocoder_dalli_client.rb
Created April 18, 2013 10:22
Memcached/Dalli cache client for the Ruby Geocoder gem http://www.rubygeocoder.com/
require 'dalli/client'
require 'yaml'
class GeocoderDalliClient
def initialize
@keys = 'GeocoderDalliClientKeys'
# setup for Heroku using the memcachier gem.
# On other setups you'll have to specify the Memcached server
@dalli_client = Dalli::Client.new
end
@eoy
eoy / deploy.rb
Created July 20, 2012 22:49
Eoy's Server/Deploy Setup
require "bundler/capistrano"
set :whenever_command, "bundle exec whenever"
require 'whenever/capistrano'
server "123.456.789.10", :web, :app, :db, primary: true
set :application, "app_name"
set :user, "deployer"