Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
CREATE TABLE `isimler` ( | |
`id` int(10) NOT NULL AUTO_INCREMENT, | |
`ad` varchar(255) COLLATE utf8_bin NOT NULL, | |
`cinsiyet` varchar(50) COLLATE utf8_bin NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `ad` (`ad`), | |
KEY `cinsiyet` (`cinsiyet`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | |
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r |
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
/* Simple Memcached in Javascript | |
* @Author: Sun, Junyi | |
* @Email: ccnusjy@gmail.com | |
* @Date: 2012-8-3 | |
*/ | |
var net = require('net'); | |
var store = {} | |
function handle_header(header,crlf_len){ | |
var tup = header.split(" ") |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
function PeerConnectionImpl(originId,targetId,initiator,reliability){ | |
this.reliable = reliability; | |
this.originId = originId; | |
this.targetId = targetId; | |
//you can use adapter.js instead | |
if (window.webkitRTCPeerConnection) { | |
this.RTCPeerConnection = webkitRTCPeerConnection; | |
this.RTCSessionDescription = RTCSessionDescription; | |
} else if (window.mozRTCPeerConnection) { | |
//delete turn servers due to incompatablitiy now |
CREATE TABLE `isimler` ( | |
`id` int(10) NOT NULL AUTO_INCREMENT, | |
`ad` varchar(255) COLLATE utf8_bin NOT NULL, | |
`cinsiyet` varchar(50) COLLATE utf8_bin NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `ad` (`ad`), | |
KEY `cinsiyet` (`cinsiyet`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | |
<?php | |
function get_ip_address() { | |
$ip_keys = array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'); | |
foreach ($ip_keys as $key) { | |
if (array_key_exists($key, $_SERVER) === true) { | |
foreach (explode(',', $_SERVER[$key]) as $ip) { | |
// trim for safety measures | |
$ip = trim($ip); | |
// attempt to validate IP | |
if (validate_ip($ip)) { |
This gist assumes: