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
var extend_keyboard_event_with_keycode = function(original_event_name) { | |
var $fn_original = $.fn[original_event_name]; | |
var keyboard_event_function_wrapper = function(keycodes, handler) { | |
return function(e) { | |
if(keycodes.indexOf(e.which) != -1) | |
return handler(e); | |
} | |
} |
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
<?php | |
$keys = ['REMOTE_ADDR', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR']; | |
foreach ($keys as $key) { | |
$ip = $_SERVER[$key]; | |
echo $key . ' = ' . $ip; | |
if ($ip != ''){ | |
$location = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); | |
if($location){ | |
echo ' (' . $location->geoplugin_city . ', ' . $location->geoplugin_countryName . ')'; |
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
#include <stdio.h> | |
#include <string.h> | |
void f1(const char *filename); | |
int main(int argc, const char *argv[]) | |
{ | |
if(argc<2) return 0; | |
f1(argv[1]); |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>TinyChat 簡易的網路聊天室</title> | |
</head> | |
<body onload="document.tinychat.say.focus()"> | |
<? | |
$_GET['nick'] = escapeshellcmd($_GET['nick']); | |
$_GET['say'] = escapeshellcmd($_GET['say']); | |
if($_GET['say']!=""){ |
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
Initial content | |
Additional content |
OlderNewer