Skip to content

Commit 021f607

Browse files
author
Manuel Eusebio de Paz Carmona
committed
Adding code to work as script
1 parent 1a792af commit 021f607

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎P01_benchmark/mysql_insert_loop.js‎

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# work as an script: chmod +x filename.js
2+
#!/usr/bin/env node
3+
14
var mysql = require('mysql');
25
// Create a connection to MySql Server and Database
36

‎P01_benchmark/mysql_insert_loop.py‎

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# work as an script: chmod +x filename.js
12
#/usr/bin/env python
23

34
import time,mysql.connector

‎P02_nodejsutilities/parse_json_lines.js‎

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# work as an script: chmod +x filename.js
2+
#!/usr/bin/env node
3+
14
var Lazy=require("lazy");
25
new Lazy(process.stdin).lines.forEach(
36
function(line) {

0 commit comments

Comments
 (0)