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
#include "compat_types.h" | |
#include "types.h" | |
#include "core.h" | |
InputScope iscope; | |
ResultScope rs; | |
Material material; | |
Profile profile; | |
SolverContext ctx = { | |
.rms_resid = 1.0, |
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
typedef struct { | |
// 2-3 points are required | |
vec3 *xyz; // X,Y,Z node coordinates (global) | |
// size = DoF = nN * 6 | |
int | |
*q,*r, sumR; // reaction data, total no. of reactions | |
int | |
// 2 -3 | |
nN, // number of Nodes | |
// 1 -2 |
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
type NodeID = number; | |
type EdgeID = number; | |
type Vec3 = { | |
x: number; | |
y: number; | |
z: number; | |
} | |
type DepthOfFreedom = { |
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
import json | |
import atexit | |
import mimetypes | |
from multiprocessing.pool import ThreadPool | |
import io | |
import os | |
import re | |
import typing |
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
{"queryId":1,"db":"ArangoDB","readingTime":"10.052681ms"} | |
{"queryId":1,"db":"Neo4jDB","readingTime":"117.842903ms"} | |
{"queryId":2,"db":"ArangoDB","readingTime":"2.823589ms"} | |
{"queryId":2,"db":"Neo4jDB","readingTime":"13.876804ms"} | |
{"queryId":3,"db":"ArangoDB","readingTime":"2.343047ms"} | |
{"queryId":3,"db":"Neo4jDB","readingTime":"14.171817ms"} | |
{"queryId":4,"db":"ArangoDB","readingTime":"3.961202ms"} | |
{"queryId":4,"db":"Neo4jDB","readingTime":"15.84186ms"} | |
{"queryId":5,"db":"ArangoDB","readingTime":"3.03025ms"} | |
{"queryId":5,"db":"Neo4jDB","readingTime":"52.12925ms"} |
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
{"queryId":1,"db":"ArangoDB","readingTime":"12.8633ms"} | |
{"queryId":1,"db":"Neo4jDB","readingTime":"9.6339ms"} | |
{"queryId":2,"db":"ArangoDB","readingTime":"2.7958ms"} | |
{"queryId":2,"db":"Neo4jDB","readingTime":"8.8287ms"} | |
{"queryId":3,"db":"ArangoDB","readingTime":"8.093ms"} | |
{"queryId":3,"db":"Neo4jDB","readingTime":"7.8797ms"} | |
{"queryId":4,"db":"ArangoDB","readingTime":"9.5532ms"} | |
{"queryId":4,"db":"Neo4jDB","readingTime":"8.705ms"} | |
{"queryId":5,"db":"ArangoDB","readingTime":"6.0999ms"} | |
{"queryId":5,"db":"Neo4jDB","readingTime":"12.021ms"} |
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 passport = require('passport') | |
const LocalStrategy = require('passport-local').Strategy | |
const bcrypt = r('bcrypt') | |
const User = require('./User') | |
const ERR = 'Authentication error!' | |
passport.use(new LocalStrategy( | |
function(username, password, done) { | |
return User.find({username}, function(err, users) { |
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
;(function () { | |
var styles = document.createElement('style'); | |
styles.innerHTML += '.output-node p {margin: 1px 0;}'; | |
styles.innerHTML += '.output-node {margin-top: 20px; line-height: 1.5;}'; | |
styles.innerHTML += '.failed-assert {color: #B22}'; | |
styles.innerHTML += '.summary {font-weight: 600}'; | |
styles.innerHTML += '.all-passed {color: #5D2}'; | |
document.body.appendChild(styles); | |
var outputNode = document.createElement('div'); | |
outputNode.classList.add('output-node'); |
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 express = require('express') | |
var pipe = require('pipe') | |
var request = require('request') | |
var app = express(); | |
// Remote host API root url | |
var API = 'http://10.9.210.28:8081/hackathon' | |
app.listen(9000) |
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
Column API: | |
1. Plain arg list replaced with options object: | |
Column(@title, @fieldName, options) | |
Usage: | |
new Column 'Title', 'field', | |
template: '/cell.tpl' | |
isSortable: false | |
2. Default template for Column class | |
Column class will use same template as a SimpleColumn. |
NewerOlder