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 applyDebug(obj) { | |
for (var f in obj) { | |
if (obj.hasOwnProperty(f) && typeof obj[f] === 'function') { | |
console.log(obj[f].toString()); | |
origFunc = obj[f]; | |
obj[f] = function () { | |
console.debug("called at " + new Date()); | |
return origFunc.apply(this, arguments); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> | |
.content { |
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
$('.foo').cycle({ | |
fx: 'scrollHorz' | |
}); |
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
.centered { | |
position: relative; | |
float: left; | |
} | |
.centered.outer { | |
text-align: justify; | |
right: 50%; | |
} |
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
// quando clicco su enterfullscreen: | |
// vai in fullscreen | |
// all'entrata in fullscreen: | |
// mostra pulsante exitfullscreen | |
// nascondi header e footer | |
// quando clicco su exitfullscreen: | |
// esci da fullscreen |
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
// quando clicco su enterfullscreen: | |
// vai in fullscreen | |
// mostra pulsante exitfullscreen | |
// nascondi header e footer | |
// quando clicco su exitfullscreen: | |
// esci da fullscreen | |
// mostra pulsante enterfullscreen | |
// mostra header e footer |
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
var ev = '', | |
out = []; | |
for (ev in window) { | |
if (/^on/.test(ev)) { | |
out[out.length] = ev; | |
} | |
} | |
console.log(out.join(', ')); |
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
$('.fullscreenbutton').on('click', function () { | |
function toggleFullScreen() { | |
if (!document.fullscreenElement && // alternative standard method | |
!document.mozFullScreenElement && !document.webkitFullscreenElement) { // current working methods | |
if (document.documentElement.requestFullscreen) { | |
document.documentElement.requestFullscreen(); | |
} else if (document.documentElement.mozRequestFullScreen) { | |
document.documentElement.mozRequestFullScreen(); | |
} else if (document.documentElement.webkitRequestFullscreen) { |
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
/* | |
Common vector operations | |
Author: Tudor Nita | cgrats.com | |
Version: 0.51 | |
*/ | |
function Vec2(x_,y_) | |
{ | |
this.x = x_; | |
this.y = y_; |
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
// | |
// DetailsController.m | |
// iOsNative | |
#import "DetailsController.h" | |
#import "CustomDetailsCell.h" | |
#import "JsonReader.h" | |
#import "PList.h" | |
@implementation DetailsController |