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
# pip install neo4j-driver | |
from timeit import default_timer | |
from neo4j import GraphDatabase, basic_auth | |
# http://localhost:7474/browser/ | |
# cypher-shell | |
# export the DB: | |
# systemctl stop neo4j |
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 <iostream> | |
using namespace std; | |
//TODO: functii (cu si fara globale) | |
//TODO: verificare remiza inainte de a se umple tabla | |
//TODO: verificare mutare valida (in interiorul campului de joc) | |
//TODO: verificare mutare valida (pozitia in campul de joc e libera) | |
//TODO: optimizare verificare castigator pe diagonale intr-o singura conditie (hint: elementul din centru) |
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 HTTPREQUESTHANDLER_H | |
#define HTTPREQUESTHANDLER_H | |
#include <QObject> | |
#include "httprequest.h" | |
#include "httpresponse.h" | |
class HTTPRequestHandler : public QObject | |
{ |
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 "foo.h" | |
#include <QThread> | |
#include <QDebug> | |
Foo::Foo(int d, QObject *parent) : | |
QObject(parent), data(d) | |
{ | |
} |
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 Foo{ | |
public $foo = TRUE; | |
} | |
class Factory{ | |
public static function create($Product){ | |
return new $Product; | |
} |
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 <vector> | |
#include <iostream> | |
template <typename T> | |
std::vector<T> qs(std::vector<T> v){ | |
std::vector<T> smaller, greater; | |
T pivot; | |
if(!v.size()){ | |
return smaller; |
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
import Data.List | |
doubleMe x = x + x | |
doubleUs x y = doubleMe x + doubleMe y | |
doubleSmallNumber x = | |
if x > 100 | |
then x | |
else | |
doubleMe 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
#include <stdio.h> | |
int main(){ | |
const int FOO = 24; | |
int bar = 42; | |
bar++; | |
printf("%i %i\n", FOO, bar); | |
} |
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 bar = 42; | |
const int *foo = &bar; | |
foo = (int*)45; | |
printf("foo: %d\n", foo); | |
} |
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
2012-12-07 22:34:41 flavius paullik: deci suntem pe aceeasi lungime de unda la ce am scris pe ml? ultima sinteza | |
2012-12-07 22:34:52 paullik n-am apucat sa citesc | |
2012-12-07 22:35:16 flavius e pe la sfarsit, mailurile mele lungi se citesc cel mai bine de la coada la cap :)) | |
2012-12-07 22:35:29 flavius atunci au un sens | |
2012-12-07 22:37:15 paullik flavius, da, suna bine | |
2012-12-07 22:37:19 paullik stai ca avem o idee de comentat | |
2012-12-07 22:37:27 paullik după ce a răspuns la toate punctele, i se spune să treacă la pasul următor din ghid | |
2012-12-07 22:37:30 paullik asta | |
2012-12-07 22:37:37 paullik raspunde, dar daca raspunde ... prost? | |
2012-12-07 22:37:57 paullik sau cu dezinteres? sau nu stiu... daca iese prost dupa aceste raspunsuri? |
NewerOlder