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.prototype.method = function(name,func) | |
{ | |
this.prototype[name] = func; | |
return this; | |
} | |
Array.method('unshift' , function () { | |
this.splice.apply(this,[0,0].concat(Array.prototype.slice.apply(arguments))); | |
return this.length; | |
}); |
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
<html> | |
<head> | |
<script language=javascript> | |
<!-- | |
Function.prototype.method = function(name,func) | |
{ | |
this.prototype[name] = func; | |
return this; | |
}; |
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
<html> | |
<head> | |
<script language=javascript> | |
<!-- | |
var first_time = new Date(); | |
var flush_color = "#000000"; | |
var max = 120; | |
var c = 255; | |
function sabun_get(time) | |
{ |
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
<html> | |
<head> | |
<script language=javascript> | |
<!-- | |
var by = function(name) | |
{ | |
return function(o,p) | |
{ | |
var a,b; | |
if(typeof o === 'object' && typeof p === 'object' && o && p) |
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
#!/usr/bin/perl | |
use strict; | |
use Devel::Symdump; | |
my @packs = qw(main); | |
my $obj = Devel::Symdump->rnew(@packs); | |
foreach my $func($obj->functions) | |
{ |
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 geo = navigator.geolocation; | |
var watch = geo.watchPosition(function( position ) | |
{ | |
if(position.coords.accuracy < 50) | |
{ | |
geo.clearWatch(watch); | |
alert(position.coords.latitude); | |
alert(position.coords.longitude); | |
} | |
},function() |
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
<html> | |
<head> | |
<script language=javascript> | |
<!-- | |
var mammal = function(spec) | |
{ | |
var that = {}; | |
that.get_name = function() | |
{ |
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
<html> | |
<head> | |
<script language=javascript> | |
<!-- | |
if(typeof Object.create !== 'function') | |
{ | |
Object.create = function(o) | |
{ | |
var F = function(){}; |
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 Mammal = function(name) | |
{ | |
this.name = name; | |
}; | |
Mammal.prototype.says = function(){ | |
return this.saying || ''; | |
}; | |
Mammal.prototype.get_name = function() |
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.prototype.method = function(name,func){ | |
this.prototype[name] = func; | |
return this; | |
}; |