I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| extern mod sync; | |
| // str op trait | |
| use std::str::StrSlice; | |
| // for tcp listen | |
| use std::io::{TcpListener, TcpStream}; | |
| use std::io::net::ip::SocketAddr; | |
| // for trait | |
| use std::io::{Listener, Writer, Acceptor, Buffer}; | |
| // for spawn |
| class SafariApnController < ApplicationController | |
| # When a user allows permission to receive push notifications, a POST request is sent to the following URL: | |
| # webServiceURL/version/pushPackages/websitePushID | |
| # post '/:version/pushPackages/:website_push_id' => 'safari_apn#package' | |
| def package | |
| #return the push package | |
| send_file(File.join(Rails.root, 'public', 'pushPackage.zip'), type: 'application/zip', disposition: 'inline') | |
| end |
| # define a record, first attribute is considered the key | |
| defrecord User, email: "", first: "", last: "" | |
| # encapsulates mnesia calls | |
| defmodule Database do | |
| def create_schema do | |
| create_table User | |
| end | |
| def find(record, id) do |
| package main | |
| /* | |
| #cgo CFLAGS: -x objective-c | |
| #cgo LDFLAGS: -framework Cocoa | |
| #import <Cocoa/Cocoa.h> | |
| int | |
| StartApp(void) { | |
| [NSAutoreleasePool new]; |
| #! /bin/sh | |
| # | |
| # Copyright (c) 2013 Bryan Drewery <[email protected]> | |
| # 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. |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| import strutils | |
| from os import ParamCount, ParamStr | |
| import tables | |
| export tables.`[]` | |
| #### Simple string lexer ### | |
| type | |
| PLexer = ref TLexer | |
| TLexer = object | |
| str: string |
| import parseopt | |
| from strutils import parseInt | |
| from os import existsFile | |
| const usage = """ | |
| head [flags] filename | |
| -n: number of lines (default 10) | |
| -h,--help: this help | |
| -v,--version: version | |
| """ |
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.