Skip to content

Instantly share code, notes, and snippets.

View ahmed-bacha's full-sized avatar

AAB ahmed-bacha

View GitHub Profile
# find head commit
git reflog
# now reset hard - where N is the head commit found in the reflog
git reset --hard HEAD@{N}
{"_id":"30429c526ba7f23e7d5b","title":"Tarte aux fruits","description":"Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique.","duree":"40 MIN","portions":4,"categorie":"Plat","stared":["ahmed-bacha","nbouherrou"],"visites":44,"ingredients":[{"nom":"NAME","quantite":200,"unite":"Gramme"},{"name":"NAME","quantite":5,"unite":"Unit"}],"commentaires":[{"user":"ahmed","message":"Hello world"}],"image":"base64"}
Test, Abdelkrim added ...
package org.pri.controller;
import java.io.File;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.Transaction;