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
#!/bin/sh | |
#set -x | |
WG_CONFIG="" | |
INTERFACE="" | |
ADDRESSES="" | |
MTU="" | |
DNS="" | |
DNS_SEARCH="" | |
TABLE="" |
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 | |
/** | |
* Class Yatrie | |
*/ | |
class Yatrie | |
{ | |
public $deal = []; //deallocated memory array to store deallocated memory blocks for the future reuse | |
/** |
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 | |
function getLongestCommonSubstring($first, $second) | |
{ | |
$longestCommonSubstringIndexInFirst = 0; | |
$table = array(); | |
$largestFound = 0; | |
$firstLength = strlen($first); | |
$secondLength = strlen($second); |
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
function parse_url(uri){ | |
var a = document.createElement('a'); | |
a.href = uri; | |
return {scheme: a.protocol, user: a.username, pass: a.password, | |
host: a.hostname, port: a.port, path: a.pathname, | |
query: a.search, fragment: a.hash | |
} | |
} | |
//demo |
NewerOlder