This file contains hidden or 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 playFor = function(transformations,val) { | |
| return [val].concat(transformations.map(function(x){ | |
| val = x[1](val); | |
| return val; | |
| })); | |
| }; | |
| pop = function(arr) { | |
| return [arr.slice(0,1)[0],arr.slice(1,arr.length)]; | |
| } |
This file contains hidden or 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 contain = function(arr,val); | |
| var domain = function(arr,coTo,morphisem) { | |
| return function(){ | |
| var values = arr || []; | |
| return { | |
| morph : function(func){ | |
| return domain(values.map(func)); | |
| }, | |
| morphTo : function(domain,morphisem){ | |
| var codomain = values.map(morphisem); |
This file contains hidden or 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
| /*-----Initial Tests-------------------------*/ | |
| DECLARE E1 CURSOR FOR | |
| SELECT SERIAL.SERIAL,SERIALNAME | |
| FROM SERIAL,SERIALA | |
| WHERE SERIALA.SERIAL = SERIAL.SERIAL | |
| AND SERIALSTATUS IN (2,8,4) | |
| AND EXISTS( | |
| SELECT 'X' FROM TRANSORDER | |
| WHERE TRANSORDER.TYPE = 'B' | |
| AND SERIAL = SERIAL.SERIAL); |
This file contains hidden or 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
| /*-Initial Tests-*/ | |
| DECLARE E1 CURSOR FOR | |
| SELECT SERIAL.SERIAL,SERIALNAME | |
| FROM SERIAL,SERIALA | |
| WHERE SERIALA.SERIAL = SERIAL.SERIAL | |
| AND SERIALSTATUS IN (2,8,4) | |
| AND EXISTS( | |
| SELECT 'X' FROM TRANSORDER | |
| WHERE TRANSORDER.TYPE = 'B' | |
| AND SERIAL = SERIAL.SERIAL); |
This file contains hidden or 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 | |
| error_reporting(E_ALL); | |
| ini_set( 'display_errors','1'); | |
| try{ $dsn = 'dblib:dbname=silrd;host=192.168.7.199\PRI'; | |
| $user = 'tabula'; | |
| $password = 'Manager1'; | |
| $dbh = new PDO($dsn, $user, $password); | |
| } catch (PDOException $e) { | |
| echo "Failed to get DB handle: " . $e->getMessage() . "\n"; | |
| exit; |
This file contains hidden or 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
| /*-------DB Functions------*/ | |
| var r = require('rethinkdbdash')({ | |
| port: 28015, | |
| host: 'localhost', | |
| db: 'Kibbutznik' | |
| }); | |
| var randomKbzId = () => { | |
| var d = new Date().getTime(); |
This file contains hidden or 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
| const Member = new GraphQLObjectType({ | |
| name: 'Member', | |
| description: 'This represent a Member', | |
| fields: () => ({ | |
| id: {type: new GraphQLNonNull(GraphQLString)}, | |
| name: {type: GraphQLString}, | |
| pic: {type: GraphQLString} | |
| }) | |
| }) |
This file contains hidden or 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 sql = require('mssql'); | |
| var express = require('express'); | |
| var app = express(); | |
| var bodyParser = require('body-parser'); | |
| var cors = require('cors'); | |
| var config = { | |
| user: '', | |
| password: '', | |
| server: '', |
This file contains hidden or 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
| 0x67052032Bc2655Bb79A7989134D462d05c77B247 |
This file contains hidden or 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 config = { | |
| user: '', | |
| password: '', | |
| server: '', | |
| database: '', | |
| pool: { | |
| max: 15, | |
| min: 0, | |
| idleTimeoutMillis: 30000 | |
| } |
OlderNewer