This file contains 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
def logistic(x, mu = 9): | |
'Smoothing function (s curve).' | |
return 1 - 1 /( 1 + math_e ** ((x - 1/2) * mu)) |
This file contains 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
+ (UIImage *)imageNamed:(NSString *)imageName | |
fromBytes:(const Byte *)bytes | |
length:(NSUInteger)length | |
fromRetinaBytes:(const Byte *)retinaBytes | |
retinaLength:(NSUInteger)retinaLength { | |
NSString *bundleName = [FBSettings resourceBundleName]; | |
if (bundleName) { | |
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"%@.bundle/%@", bundleName, imageName]]; | |
if (image) { | |
return image; |
This file contains 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.path = package.path .. ';generated/?.lua;lib/?.lua' | |
function love.conf(conf) | |
conf.window.width = 768 | |
conf.window.height = 1024 | |
conf.window.title = "my title" | |
conf.modules.joystick = false | |
end | |
require "mainmoon" |
This file contains 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
void SetupTrackingObject() | |
{ | |
NSApplication* app = [NSApplication sharedApplication]; | |
NSWindow* window = [app mainWindow]; | |
view = [window contentView]; | |
if(pTrackMgr != nil) | |
{ | |
[view setNextResponder:[pTrackMgr nextResponder]]; | |
[pTrackMgr release]; |
This file contains 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
bool wxTopLevelWindowMSW::Show(bool show) | |
{ | |
// don't use wxWindow version as we want to call DoShowWindow() ourselves | |
if ( !wxWindowBase::Show(show) ) | |
return false; | |
int nShowCmd; | |
if ( show ) | |
{ | |
if ( m_maximizeOnShow ) |
This file contains 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
> wxwebkit.dll!WebCore::ContainerNode::attach() Line 652 + 0xa bytes C++ | |
wxwebkit.dll!WebCore::Element::attach() Line 719 C++ | |
wxwebkit.dll!WebCore::Element::recalcStyle(WebCore::Node::StyleChange change=NoChange) Line 761 C++ | |
wxwebkit.dll!WebCore::Element::recalcStyle(WebCore::Node::StyleChange change=NoChange) Line 822 C++ | |
wxwebkit.dll!WebCore::Element::recalcStyle(WebCore::Node::StyleChange change=NoChange) Line 822 C++ | |
wxwebkit.dll!WebCore::Element::recalcStyle(WebCore::Node::StyleChange change=NoChange) Line 822 C++ | |
wxwebkit.dll!WebCore::Document::recalcStyle(WebCore::Node::StyleChange change=NoChange) Line 1140 C++ | |
wxwebkit.dll!WebCore::Document::updateRendering() Line 1168 C++ | |
wxwebkit.dll!WebCore::Document::updateLayout() Line 1196 C++ | |
wxwebkit.dll!WebCore::Document::updateLayoutIgnorePendingStylesheets() Line 1231 C++ |
This file contains 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
cl /c /nologo /TP /Fovc_mswuhdll\coredll_graphicc.obj /MD /DWIN32 /Fd | |
..\..\lib\vc_dll\wxmsw28uh_core_vc.pdb /O2 /D__WXMSW__ /DwxNO_EXCEPTIONS | |
/D_UNICODE /DwxUSE_GRAPHICS_CONTEXT=1 /I..\..\lib\vc_dll\mswuh /I..\..\inclu | |
de /I..\..\external\cairo-dev\include\cairo /W4 /I..\..\src\tiff /I..\..\src\j | |
peg /I..\..\src\png /I..\..\src\zlib /I..\..\src\regex /I..\..\src\expat\lib /D | |
WXUSINGDLL /DWXMAKINGDLL_CORE /DwxUSE_BASE=0 /GR /Yu"wx/wxprec.h" /Fp"vc_mswu | |
hdll\wxprec_coredll.pch" /GS- /Zi /GL ..\..\src\generic\graphicc.cpp | |
graphicc.cpp | |
..\..\src\generic\graphicc.cpp(852) : warning C4100: 'fillStyle' : unreferenced | |
formal parameter |
This file contains 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
GdiPlus.dll!DpOutputBilinearSpan_Identity::OutputSpan() + 0x4692f bytes | |
GdiPlus.dll!DpClipRegion::OutputSpan() + 0x69 bytes | |
GdiPlus.dll!StretchBitsMainLoop() + 0x32 bytes | |
GdiPlus.dll!DpDriver::DrawImage() + 0x305 bytes | |
GdiPlus.dll!GpGraphics::DrvDrawImage() - 0x877 bytes | |
GdiPlus.dll!GpGraphics::DrawImage() - 0x47e bytes | |
GdiPlus.dll!GpGraphics::DrawImage() + 0x4d bytes | |
GdiPlus.dll!GpGraphics::DrawImage() + 0x2c bytes | |
GdiPlus.dll!_GdipDrawImageRect@24() + 0x241e2 bytes | |
> wxmsw28uh_core_vc.dll!wxGDIPlusContext::DrawBitmap(const wxGraphicsBitmap & bmp={...}, double x=-68.000000000000000, double y=498.00000000000000, double w=640.00000000000000, double h=480.00000000000000) Line 1178 + 0x51 bytes C++ |
This file contains 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
bool ThreadCondition::timedWait(Mutex& mutex, double secondsToWait) | |
{ | |
if (secondsToWait < 0.0) { | |
wait(mutex); | |
return true; | |
} | |
int intervalSeconds = static_cast<int>(secondsToWait); | |
int intervalMicroseconds = static_cast<int>((secondsToWait - intervalSeconds) * 1000000.0); | |
This file contains 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 ScreenHDC | |
{ | |
public: | |
ScreenHDC() { m_hdc = ::GetDC(NULL); } | |
~ScreenHDC() { ::ReleaseDC(NULL, m_hdc); } | |
operator HDC() const { return m_hdc; } | |
private: | |
HDC m_hdc; |
OlderNewer