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 FMRuntime = { | |
/** | |
* Changes Directory | |
* \internal Just Calls _cd() and _ls() serialy. | |
* \return void | |
*/ | |
cd : function(){ | |
}, | |
/** |
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
void ArthurStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const{ | |
Q_ASSERT(option); | |
switch (element) { | |
case PE_FrameFocusRect: | |
break; | |
case PE_IndicatorRadioButton: | |
if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) { | |
bool hover = (button->state & State_Enabled) && (button->state & State_MouseOver); |
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
#ifndef PHPCONSTRUCTIDENTITY_H | |
#define PHPCONSTRUCTIDENTITY_H | |
#include <QStringList> | |
#include <map> | |
#include <algorithm> | |
class PHPConstructIdentity{ | |
public: | |
PHPConstructIdentity(); |
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); |
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
#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
#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 "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
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
#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){ |