This file contains hidden or 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
%% Author: Alex Radetsky <[email protected]> | |
%% Module: Simple SMPP Server on Erlang, gen_fsm, ranch, smpp34pdu. | |
%% It always authorize bind_transceiver and receives submit_sm | |
-module(smpp_protocol). | |
-behaviour(gen_fsm). | |
-behaviour(ranch_protocol). | |
-include_lib("smpp34pdu/include/smpp34pdu.hrl"). |
This file contains hidden or 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
defmodule CommentPath do | |
@moduledoc""" | |
Comment [closure table](http://www.slideshare.net/billkarwin/models-for-hierarchical-data). | |
""" | |
@primary_key false | |
schema "comment_paths" do | |
field :ancestor_id, Ecto.UUID | |
field :descendant_id, Ecto.UUID | |
field :depth, :integer |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
window.WebSocket = window.WebSocket || window.MozWebSocket; | |
var websocket = new WebSocket('ws://127.0.0.1:9000', |
OlderNewer