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
<?xml version="1.0" encoding="UTF-8"?> | |
<metrics files="33" functions="1" cls="37" clsa="2" clsc="35" roots="2" leafs="35" interfs="0" maxdit="2"> | |
<file name="/Applications/xampp/xamppfiles/htdocs/eStudy_svn/web/emoderation/classes/webservice/class.webservicecache.inc.php" classes="1" functions="0" loc="190" cloc="41" ncloc="149" locExecutable="81" locExecuted="36" coverage="44.444444"> | |
<class name="WebserviceCache" loc="162" locExecutable="81" locExecuted="36" aif="0.000000" ahf="100.000000" ca="0" ce="3" csz="21" cis="15" coverage="44.444444" dit="0" i="1.000000" impl="1" mif="0.000000" mhf="16.666667" noc="0" pf="0.000000" vars="3" varsnp="0" varsi="3" wmc="26" wmcnp="21" wmci="26"> | |
<method name="__construct" loc="4" locExecutable="2" locExecuted="2" coverage="100.000000" ccn="1" crap="1.000000" npath="1" parameters="2"/> | |
<method name="get" loc="10" locExecutable="7" locExecuted="7" coverage="100.000000" ccn="2" crap="2.000000" npath="2" parameters="3"/> | |
<method name="set" loc= |
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
; Int x Val -> List-of-Val | |
(define duple | |
(lambda (n x) | |
(duple-list-element n '() x))) | |
; Int x List x Val -> List | |
(define duple-list-element | |
(lambda (n lst x) | |
(if (zero? n) | |
lst |
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
#!/bin/bash | |
ICONVBIN='/usr/bin/iconv' # path to iconv binary | |
ORIGINAL_IFS=$IFS | |
IFS=$'\n' | |
if [ $# -lt 3 ] | |
then | |
echo "$0 dir from_charset to_charset" |
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
<?php | |
function compose($a, $b) { | |
return function ($x) use ($a, $b) { | |
return $a($b($x)); | |
}; | |
} | |
$F = function($x) { return $x; }; | |
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
// Code by Anton Afanasjew | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
public class FileListExample { | |
public static final String CMD = "run.cmd"; |
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
NameVirtualHost * | |
<VirtualHost *> | |
ServerAdmin webmaster@localhost | |
Alias /trac "/usr/share/trac/htdocs" | |
ScriptAlias /estudy /usr/share/trac/cgi-bin/trac.cgi | |
<Location "/estudy"> | |
SetEnv TRAC_ENV "/home/trac/estudy" | |
</Location> | |
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
<Location /svn> | |
DAV svn | |
AuthzSVNAccessFile /var/lib/svn/estudy/conf/authz | |
SVNParentPath /var/lib/svn | |
SVNAutoversioning on | |
AuthType Basic | |
AuthName "SVN - eStudy" | |
AuthUserFile /home/trac/estudy/estudy.htpasswd | |
Require valid-user | |
</Location> |
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
<?php | |
class UberSingleton { | |
private $state = 0; | |
private static $instance; | |
private function __construct() {} | |
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
<?php | |
$sql = "SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'estudy_v2' AND ENGINE = 'MyISAM'"; | |
$tables = $db->get_col($sql); | |
foreach($tables as $tableName) { | |
echo "ALTER TABLE `$tableName` ENGINE = InnoDB ;\n"; | |
} |
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 inc = function (n) { | |
return n + 1; | |
}; | |
var zero = function (f) { | |
return function (x) { return x; }; | |
}; | |
var church = function (n) { | |
var loop = function (n, acc) { |
OlderNewer