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
#include <Windows.h> | |
#include <tchar.h> | |
#define CURRENT_WND_CLASS _T("GameWndClass_Didiet") | |
#define DEF_CX 800 | |
#define DEF_CY 600 | |
LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM ); | |
INT WINAPI _tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow ) |
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
NM=ntoarmv7-nm LD=ntoarmv7-ld STRIP=ntoramv7-strip RANLIB=ntoarm7-ranlib OBJDUMP=ntoarm7-objdump AR=ntoarmv7-ar CC=qcc -Vgcc_ntoarmv7le_gpp CFLAGS=-I${QNX_TARGET}/usr/include -I${QNX_TARGET}/usr/include/cpp/c -I${QNX_TARGET}/usr/include/cpp ./configure --build x86_64 --host arm --target arm --prefix=${HOME}/Projects/qnx-bin/device |
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
#include <QScopedPointer> | |
class PlayerData | |
{ | |
public: | |
PlayerData() : health(100), atk(10), agi(10), name (new char[255]) {} | |
~PlayerData() { delete [] name; } | |
char *name; | |
int health, atk, agi; | |
}; |
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
/* | |
* Copyright (c) 2012, Muhammad Sumyandityo Noor | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* - Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* - Redistributions in binary form must reproduce the above copyright notice, |
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
sudo port -n upgrade --force perl5.12 apr | |
sudo port upgrade subversion-perlbindings |
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
javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})(); |
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
port -dfn uninstall perl5.12 apr apr-utils | |
port -d install perl5.12 apr apr-utils | |
port -d upgrade subversion-bindings |
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
< #define __ARM_ARCH_5TEJ__ 1 | |
--- | |
> #define __ARM_ARCH_6K__ 1 | |
101d100 | |
< #define __SOFTFP__ 1 | |
110a110 | |
> #define __VFP_FP__ 1 |
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
syn on | |
set cindent | |
set smartindent | |
set autoindent | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set cinkeys=0{,0},:,0#,!^F | |
call pathogen#infect() | |
filetype plugin indent on |
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
/* See http://en.wikipedia.org/wiki/Fast_inverse_square_root for | |
For original implementation | |
*/ | |
typedef union { | |
long l; | |
float f; | |
} LongFloat; | |
static inline float InvSqrt( const float v ) { |