One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# encoding=utf8 | |
import sys | |
import csv | |
import mysql.connector | |
# Connect to MSSQL Server | |
try: | |
conn = mysql.connector.connect(host="", user="",password="", database="") |
# encoding=utf8 | |
# fichier permettant dexporter vers csv les item id et item name | |
import sys | |
import csv | |
import datetime | |
import mysql.connector | |
from decimal import Decimal | |
# Connect to MSSQL Server |
const sha256 = require('sha256'); | |
class Block { | |
constructor(index, timestamp, data, prevHash) { | |
this.index = index; | |
this.timestamp = timestamp; | |
this.data = data; | |
this.prevHash = prevHash; | |
this.thisHash = sha256( | |
this.index + this.timestamp + this.data + this.prevHash |
const utils = require ("daveutils"); | |
const yaml = require ("js-yaml"); | |
function yamlIze (jsontext) { | |
var jstruct = JSON.parse (jsontext); | |
const delimiter = "---\n"; | |
var text = jstruct.text; | |
delete jstruct.text; | |
var s = delimiter + yaml.safeDump (jstruct) + delimiter + text; |
A Pen by Tristan WAGNER on CodePen.