Skip to content

Instantly share code, notes, and snippets.

View tylerreisinger's full-sized avatar

Tyler Reisinger tylerreisinger

  • Philadelphia, PA
View GitHub Profile
filetype off
"Load vim-plug if it is not already installed (Necessary for all further
"plugin loading
if empty(glob("~/.vim/autoload/plug.vim"))
execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim'
endif
function! BuildYCM(info)
if a:info.status == 'installed' || a:info.force
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
import Queue
import threading
import struct
class _PacketDispatcherWorkerThread(threading.Thread):
def __init__(self, dispatcher):
self._dispatcher = dispatcher
threading.Thread.__init__(self)
def run(self):
import socket
import threading
import select
import Queue
import struct
class SocketConnection(object):
def __init__(self, packetDispatcher):
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP)
self._stopEvent = threading.Event()
import httplib
import time
import xml.dom.minidom as xmlparser
import threading
import Queue
from amfast.decoder import Decoder
from amfast.encoder import Encoder
import json
class Point {
};
diff --git a/client.py b/client.py
index ea827a0..5cbcd67 100644
--- a/client.py
+++ b/client.py
@@ -59,7 +59,7 @@ def get_list(s):
net_dic_data = s.recv(4096)
debug_print('net dictest', net_dic_data) #debugprint
- while len(net_dic_data) == 0:
+ if len(net_dic_data) == 0:
.586
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\gdi32.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
include \masm32\include\shlwapi.inc
include \masm32\include\oleaut32.inc
@tylerreisinger
tylerreisinger / SpriteFont.cpp
Created April 6, 2018 20:57
SpriteFont class cpp
/*
* SpriteFont.cpp
*
* Created on: Dec 1, 2012
* Author: tyler
*/
#include "SpriteFont.h"
#include "FontFace.h"
@tylerreisinger
tylerreisinger / Flags.h
Created April 7, 2018 19:06
Bitflag class
#ifndef FLAGS_H_0099701e_0717_43a3_af27_83c111ea5574
#define FLAGS_H_0099701e_0717_43a3_af27_83c111ea5574
#include <type_traits>
#include <initializer_list>
#include <ostream>
#include <limits>
#include <cmath>
#include <cassert>