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
<div id="studentInfoBox" class="infoBox"> | |
<span>Name: </span> <?= $name ?> | |
<span>Department: </span><?= $deptName ?> | |
<span> | |
</div> |
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
<div id="studentInfoBox" class="infoBox"> | |
<span>Name: </span> <?= $name ?> | |
<span>Department: </span><?= $deptName ?> | |
</div> |
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 stdInfoModel extends manualModel{ | |
public function attachOrmMap(){ | |
parent::attachOrmMap('StudentOrm');//attach an Orm Map on file StudentOrm.orm.map.php | |
} | |
} | |
?> |
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
#include <stdio.h> | |
int main() | |
{ | |
int i=1,j=1,n=20,gap=5; | |
for(;i<=n;i++){ | |
for(j=1;j<=n;j++){ | |
if(i==n && j==n){ | |
printf(" "); | |
}else if(i==1 && j==1){ |
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 main(int argc, char *argv[]){ | |
thing t; | |
t.addCallback("one", &thing::one); | |
t.addCallback("two", &thing::two); | |
t.addCallback("three", &thing::three); | |
t.call("one"); | |
t.call("two"); | |
t.call("three"); | |
matter m; | |
m.addCallback("one", &thing::one); |
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
#ifdef HAVE_CONFIG_H | |
#include <config.h> | |
#endif | |
#include "myapp.h" | |
int main(int argc, char *argv[]) { | |
SessionConfig::setSessPath("/tmp/cgi++/session/"); | |
myApp app; | |
app.setRoute("/test", CALLBACK(&myApp::subTest)); | |
return app.exec(); |
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
#include "jvar.h" | |
namespace Js { | |
JVar::JVar(){ | |
} | |
JVar::~JVar(){ |
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
#ifdef HAVE_CONFIG_H | |
#include <config.h> | |
#endif | |
#include <iostream> | |
#include <cstdlib> | |
#include "myapp.h" | |
int main(int argc, char *argv[]){ | |
MyApp app; |
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 UserManagerConfig extends Config{ | |
public host = ""; | |
public user = ""; | |
public pass = ""; | |
//..... | |
public database = ""; | |
} | |
/* | |
when you are in OOPS avoid using associative arrays use Objects Instead |
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
class MarkSheetTableModel : public QAbstractTableModel{ | |
public: | |
MarkSheetTableModel(QObject* parent=0); | |
~MarkSheetTableModel(); | |
private: | |
QList<QString> subjects;//Headers Come from Here | |
QHash<QString, QList<double>* > students;//each student and their corresponding marks make a row | |
public: | |
QList<double>& addStudent(const QString& stdName); | |
QList<double>& student(const QString& stdName); |
OlderNewer