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
aahed | |
aalii | |
aargh | |
aarti | |
abaca | |
abaci | |
abacs | |
abaft | |
abaka | |
abamp |
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
using Unity.Mathematics; | |
public static class QuaternionTo3x3 { | |
public static float3x3 To3x3(this quaternion quat) { | |
float4 q = quat.value; | |
float4x4 leftConversionMatrix = new float4x4( | |
new float4(q.w, q.z, -q.y, q.x), | |
new float4(-q.z, q.w, q.x, q.y), | |
new float4(q.y, -q.x, q.w, q.z), |
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 express = require('express') | |
const graphqlHTTP = require('express-graphql') | |
const { makeExecutableSchema, mergeSchemas } = require('graphql-tools') | |
const _ = require('lodash') | |
const app = express(); | |
const standaloneResolvers = { | |
Query: { | |
standalone: (data) => { | |
return { foo: "foo" } |
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 express = require('express') | |
const graphqlHTTP = require('express-graphql') | |
const { makeExecutableSchema, mergeSchemas } = require('graphql-tools') | |
const _ = require('lodash') | |
const app = express(); | |
const standaloneResolvers = { | |
Query: { | |
standalone: (data) => { | |
return { foo: "foo" } |
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
"use strict" | |
const express = require('express') | |
const graphqlHTTP = require('express-graphql') | |
const { parse, print, visit, parseValue, printSchema, buildSchema } = require('graphql') | |
const app = express() | |
const util = require('util') | |
const graphqlTools = require('graphql-tools'); | |
const rawSchema =` |
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
{ | |
"swager": "2.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "Swagger Petstore", | |
"contact": { | |
"name": "Swagger API Team", | |
"url": "http://swagger.io" | |
}, | |
"license": { |
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 request = require('request'); | |
var promiseFunction = function(){ | |
return new Promise(function(resolve, reject){ | |
request.get('http://google.com', function(e, r, b){ | |
console.log('got'); | |
resolve(); | |
}); | |
}); | |
} |
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
//OLD: | |
pg.connect(constring, function(err, client, done){ | |
if(err){ | |
console.log('Unable to collect client from pool.'); | |
} | |
client.query('BEGIN', function(err){ | |
if (err) return rollback(client, done); | |
process.nextTick(function(){ |