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
do -> | |
noop = -> | |
methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', | |
'timeStamp', 'trace', 'warn'] | |
console = (window.console or= {}) |
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
package ; | |
class Utils | |
{ | |
public static function extend(obj1: Dynamic, obj2: Dynamic): Dynamic { | |
var keys = Reflect.fields(obj2); | |
for (k in keys) { |
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
<!doctype html> | |
<html> | |
<head> | |
<title>CSS Magic</title> | |
<style> | |
.switch:before, .switch.off:before { | |
content: ""; |
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
function each(object, callback) { | |
Object.keys(object).forEach(function(key) { | |
var value = object[key]; | |
callback(key, value); | |
}); | |
} |
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
(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); |
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
// | |
// 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 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
program cmdtest; | |
uses | |
Unix, | |
Classes, | |
SysUtils; | |
function CmdToString(Command: AnsiString): TStringList; | |
var | |
formattedDateTime: AnsiString = ''; |
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
(* | |
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 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
/* | |
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 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
(* | |
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; |