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
if exists("b:did_ftplugin_go_install") | |
finish | |
endif | |
function! GocodeCompletePkg(arg, cmd, index) | |
return a:arg.'+'.a:cmd.'+'.a:index | |
let s:dirs=split(glob(DirName(@%), a:arg.'*'), '\n') | |
let s:ndirs=len(s:dirs) |
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
package network | |
import ( | |
"database/sql" | |
"github.com/Blackrush/gofus/login/db" | |
"github.com/Blackrush/gofus/protocol/msg" | |
"github.com/Blackrush/gofus/protocol/types" | |
"github.com/Blackrush/gofus/shared" | |
"log" | |
"time" |
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
package shared | |
import ( | |
"strings" | |
) | |
const alphanum = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_" | |
func Split2(in, sep string) (string, string) { | |
res := strings.SplitN(in, sep, 2) |
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
package network | |
import ( | |
"database/sql" | |
"github.com/Blackrush/gofus/login/db" | |
"github.com/Blackrush/gofus/protocol/msg" | |
"github.com/Blackrush/gofus/shared" | |
"log" | |
) |
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
package network | |
import ( | |
"bytes" | |
"github.com/Blackrush/gofus/protocol" | |
"io" | |
"log" | |
"net" | |
) |
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
"GistID:6368066 | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! |
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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
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
package org.photon.login | |
import akka.actor._ | |
import com.typesafe.config.ConfigFactory | |
import akka.io.{IO, Tcp} | |
import akka.util.ByteString | |
object LoginServer { | |
def main(params: Array[String]) { |
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
class DofusDecoder extends MessageToMessageDecoder[ByteBuf] { | |
def decode(ctx: ChannelHandlerContext, msg: ByteBuf, out: util.List[AnyRef]) { | |
} | |
} | |
class DofusEncoder extends MessageToMessageEncoder[Message] { | |
def encode(ctx: ChannelHandlerContext, msg: Message, out: util.List[AnyRef]) { | |
val serializer = implicitly[Serializer[msg.type, String]] | |
out.add(serializer(msg)) |
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
package org.photon.dofusprotocolbuilder; | |
import org.apache.commons.cli.CommandLine; | |
import org.as3commons.asblocks.ASFactory; | |
import org.as3commons.asblocks.IASParser; | |
import org.as3commons.asblocks.dom.IASCompilationUnit; | |
import org.as3commons.asblocks.impl.ASTASClassType; | |
import org.photon.shared.inject.InjectConfig; | |
import javax.inject.Inject; |