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
/* You may want to style this to your personal need */ | |
#status.achievement { | |
display: none; | |
position: absolute; | |
left: 50%; | |
bottom: -120px; | |
margin-left: -160px; | |
} |
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
//importScript("Test.js"); // Imports & executes Test.js | |
// Wohooo, JavaScript inside of JavaScript. That's meta. | |
execute("(function() { print('Hello world') })();"); | |
print("--- Let's have a cake ---"); | |
var myCake = new Cake(); | |
myCake.Info(); | |
print("--- I'm hungry ---"); |
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
Hash:=((Hash-TBESENUINT32(Integer(Prop^.Attributes))) xor TBESENUINT32(Integer(Prop^.Presents)))*1664525; |
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
/* | |
Add this little function to a .m file of your choice. I chose SDL_uikitview.m as it already has the iPhone specific keyboard functions in it. | |
I'm pretty sure you can choose any *.m file in /Library Source/video/uikit from the Xcode project file. | |
Make sure this function is added after @implementation ... @end. | |
Admittedly this is not best solution as it forces you capsulate your asset loading into one or more if calls. | |
SDL unfortunately has no tie-ins to NSImage, so you can't use the usual @2x stuff by default. (I'm not sure about SDL_image for iOS though. This option here is also preferred if you want to include a third-party non-SDL image library such as Vampyre Imaging.) | |
*/ |
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
(* | |
Elysion Custom Template | |
Compile with: fpc -Mdelphi myApplication.pas | |
Make sure the Elysion library source are added to the search paths of the compiler for example by compiling with fpc -Mdelphi -Fu./path/to/Elysion -Fi./path/to/Elysion myApplication.pas | |
(Created by Johannes Stein, 2011. This source code file is PUBLIC DOMAIN.) | |
*) | |
program myApplication; |
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
/* | |
Add this little function to a .m file of your choice. I chose SDL_uikitview.m as it already has the iPhone specific keyboard functions in it. | |
I'm pretty sure you can choose any *.m file in /Library Source/video/uikit from the Xcode project file. | |
Make sure this function is added after @implementation ... @end. | |
*/ | |
int | |
SDL_iPhoneIsDevicePad(void) |
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
(* | |
Open dglOpenGL.pas in your favorite text editor and change the following lines | |
*) | |
// Don't worry about having absolute filepaths. Mac OS X always installs the OpenGL framework with every | |
// clean installation of Mac OS X and the dylibs are ALWAYS in that path. (Tested on several Mac OS X | |
// machines including PowerMac G5 with Leopard, MacBook with Snow Leopard, MacBook Pro with Snow Leopard and Lion) | |
// While the standard search directory for libraries is /usr/lib on Mac OS X as well, you should not use this | |
// for developing your application as other Mac users don't have the OpenGL libraries in that folder and your |
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
program cmdtest; | |
uses | |
Unix, | |
Classes, | |
SysUtils; | |
function CmdToString(Command: AnsiString): TStringList; | |
var | |
formattedDateTime: AnsiString = ''; |
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
// | |
// LESS - Leaner CSS v1.3.0 | |
// http://lesscss.org | |
// | |
// Copyright (c) 2009-2011, Alexis Sellier | |
// Licensed under the Apache 2.0 License. | |
// | |
(function (window, undefined) { | |
// | |
// Stub out `require` in the browser |
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
(function($) { | |
var vendorPrefix = ['webkit', 'o', 'ms', 'moz']; | |
$.fn.vendorProperty = function(property, argument) { | |
var self = this; | |
self.css(property, argument); | |
$.each(vendorPrefix, function(index, value) { | |
self.css('-' + value + '-' + property, argument); |
OlderNewer