Skip to content

Instantly share code, notes, and snippets.

View dpogue's full-sized avatar
👨‍💻
I may be slow to respond.

Darryl Pogue dpogue

👨‍💻
I may be slow to respond.
View GitHub Profile
/home/dpogue/Coding/Plasma/Sources/Plasma/PubUtilLib/plUnifiedTime/../../CoreLib/hsRefCnt.h:86:24: error: use of undeclared identifier 'fObj'
hsRef(nullptr_t) : fObj(nullptr) { }
^
/home/dpogue/Coding/Plasma/Sources/Plasma/PubUtilLib/plUnifiedTime/../../CoreLib/hsRefCnt.h:85:15: error: member initializer 'fObj' does not name a non-static data
member or base class
hsRef() : fObj(nullptr) { }
^~~~~~~~~~~~~
2 errors generated.
@dpogue
dpogue / netmsg.txt
Created August 11, 2014 00:07
Critical path of a network message (Cli2GateKeeper_FileSrvIpAddressRequest)
Sending a message:
NetCliGateKeeperFileSrvIpAddressRequest plNglGateKeeper.cpp
NetTransSend plNglTrans.cpp
Then as a result of something calling NetClientUpdate:
NetClientUpdate plNglCore.cpp
NetTransUpdate plNglTrans.cpp
FileSrvIpAddressRequestTrans::Send plNglGateKeeper.cpp
CliGkConn::Send plNglGateKeeper.cpp
NetCliSend plNcCli.cpp
void plPatcher::RecvFileSrvIpAddress(plNetProtocol::Gate::FileSrvIpAddressResponse* msg)
{
// Do stuff with msg
}
void plPatcher::Main()
{
plNetCore::Initialize();
plNetTrans::Gate::FileSrvIpAddress trans = new plNetTrans::Gate::FileSrvIpAddress();
@dpogue
dpogue / bind.cpp
Created August 11, 2014 04:17
Quick test case using std::function and std::bind.
#include <functional>
#include <map>
#include <iostream>
using namespace std;
using namespace std::placeholders;
class MyClass
{
public:

Two $destroy events? Which one do I use?

angular.module('mymodule', ['ng'])
.directive('myDirective', function() {
    return {
        restrict: 'A',
        
        link: function($scope, $element, $attrs) {
 var handler = function() {
class foo
{
};
void foo::bar()
{
}
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
// Vertex Shader variables
uniform mat4 uMatrixL2W;
uniform mat4 uMatrixW2C;
uniform mat4 uMatrixProj;
attribute vec3 aVtxPosition;
attribute vec3 aVtxNormal;
attribute vec4 aVtxColor;
attribute vec3 aVtxUV_{{n}}; // repeat for n UV layers
░░░░░░░░░░░░░░░░░░░░░░░░░░
╭───────────────────────────────┳───────────╶╶╶╶╶╶>
╭──────╯ ╰──╮
╭─┻─────────────────────────────────────────┻───┳───┳╶╶╶╶╶╶<
│ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ╭──╯ ╰─╮
<────────┳─╯ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ ┠────<
╭─────╯ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ╭──╯ ╰─╮
>──┻─────────────────────────────────────────────────┻─────────────┻──>
░░░░░
╭─────────┳───────────╶╶╶╶╶╶╶╶╶╶>
╭╯ ╰╮
▒▒▒▒▒ ╭─┻───────────┻─┳───┳╶╶╶╶╶╶╶╶╶╶╶╶╶╶<
<──────┳────┳────────────────┳╯ ▒▒▒▒▒ │ ╰╮ ▒▒▒▒▒
╰╮ ╭╯ ▒▒▒▒▒ │ ▒▒▒▒▒ ╭╯ ┠─────────────┳───────────<
│ │ ▒▒▒▒▒ ╭╯ ▒▒▒▒▒ │ ╰╮ ╭──────╯
>───────┻──┻────────────────┻────────────────┻──────┻─────┻──────────────────>
▒▒▒▒▒ ▒▒▒▒▒