Skip to content

Instantly share code, notes, and snippets.

View shibacow's full-sized avatar

shibacow shibacow

View GitHub Profile
@esetomo
esetomo / gist:3747729
Created September 19, 2012 04:47
Miku Miku Online 64bit版Linux用サーバパッチ
--- a/common/network/Utils.hpp
+++ b/common/network/Utils.hpp
@@ -58,8 +58,8 @@ namespace network {
template<>
inline std::string GetSerializedValue(const std::string& t)
{
- size_t size = t.size();
- return ConvertEndian(std::string(reinterpret_cast<const char*>(&size), sizeof(size_t))) +
+ int size = t.size();
+ return ConvertEndian(std::string(reinterpret_cast<const char*>(&size), sizeof(int))) +
@josevalim
josevalim / sample output
Created May 24, 2012 17:53 — forked from alco/sample output
Updated Elixir chat demo
defmodule Chat.Client do
# In all of the following functions 'server' stands for the server's pid
def join(server) do
send server, :join
end
def say(server, message) do
send server, { :say, message }
end