摘要:
创建一个新的支持Mutation的Schema. var GraphQLSchema = require('graphql').GraphQLSchema; var GraphQLObjectType = require('graphql').GraphQLObjectType; var Graph
阅读全文
posted @ 2018-07-13 17:18
今夜太冷
阅读(5546)
推荐(0)
摘要:
将服务器端的代码升级了一下: var GraphQLSchema = require('graphql').GraphQLSchema; var GraphQLObjectType = require('graphql').GraphQLObjectType; var GraphQLString =
阅读全文
posted @ 2018-07-13 17:00
今夜太冷
阅读(221)
推荐(0)
摘要:
下面的代码中, 由于friends字段引用了PersonType字段,而friends本身又是PersonType的一部分,在运行的时候会报错: Expected undefined to be a GraphQL type var PersonType = new GraphQLObjectTyp
阅读全文
posted @ 2018-07-11 11:58
今夜太冷
阅读(404)
推荐(0)
摘要:
1. 资源: 主站: https://graphql.org/ 中文站: http://graphql.cn 入门视频: https://graphql.org/blog/rest-api-graphql-wrapper/ 这个网址中向下拉, 会看到这个入门视频: 从第15分钟看到第30分钟就可以.
阅读全文
posted @ 2018-07-05 16:33
今夜太冷
阅读(257)
推荐(0)
摘要:
From: https://github.com/graphql/graphiql/issues/688 psyCodelist commented 11 days ago Hi, Thank you in advance. Just wanted to let you know the the w
阅读全文
posted @ 2018-07-04 11:50
今夜太冷
阅读(559)
推荐(0)
摘要:
From: https://www.walletfox.com/course/mapwithcustomclasskey.php If you have ever tried to use a custom class as a key of std::map, most probably you
阅读全文
posted @ 2018-07-02 13:54
今夜太冷
阅读(634)
推荐(0)
摘要:
A very simple C++ module to encrypt/decrypt strings based on B64 and Vigenere ciper. https://github.com/philipperemy/easy-encryption Easy Encryption A
阅读全文
posted @ 2018-06-24 19:21
今夜太冷
阅读(333)
推荐(0)
摘要:
From: https://stackoverflow.com/questions/31574127/node-js-cheerio-parser-breaks-utf-8-encoding [问题] 7down votefavorite 7down votefavorite I parse my
阅读全文
posted @ 2018-06-21 15:53
今夜太冷
阅读(411)
推荐(0)
摘要:
来自: http://larry850806.github.io/2016/05/31/async/ [Javascript] 如何用 async 控制流程 (一) 31 May 2016 async async 是一個 Node.js module也可以在前端的 javascript 中直接使用讓
阅读全文
posted @ 2018-06-20 17:00
今夜太冷
阅读(266)
推荐(0)
摘要:
Introduction This is an article simply to demonstrate how to use several output log files depending on the library or the application. Using the Code
阅读全文
posted @ 2018-06-12 14:01
今夜太冷
阅读(251)
推荐(0)
摘要:
来自: https://svn.boost.org/trac10/ticket/11885 MSVC 12: compiler error in boost/type_traits/common_type.hpp(42) Description </form> Visual Studio 2013
阅读全文
posted @ 2018-06-06 10:50
今夜太冷
阅读(1568)
推荐(0)
摘要:
From: http://www.radmangames.com/programming/how-to-use-boost-program_options If it so happens that you’re writing a console application, then chances
阅读全文
posted @ 2018-06-04 17:15
今夜太冷
阅读(750)
推荐(0)
摘要:
[问题] 我在看boost源代码的时候看到如下的代码, 不明白里面的argv+argc+!argc是干什么用的, 请高手指教,谢谢附上to_internal函数: [答案] 一般而言,argc表示参数个数,argv表示参数数组,argv[0]表示程序自己的名称如 运行程序名为z1.exe 带参数 为
阅读全文
posted @ 2018-06-04 14:50
今夜太冷
阅读(319)
推荐(0)
摘要:
From:https://stackoverflow.com/questions/18273370/the-correct-way-to-initialize-a-dynamic-pointer-to-a-multidimensional-array Let's start with some ba
阅读全文
posted @ 2018-05-30 10:26
今夜太冷
阅读(171)
推荐(0)
摘要:
From: https://blog.csdn.net/ychw365/article/details/7034950
阅读全文
posted @ 2018-05-30 09:46
今夜太冷
阅读(839)
推荐(0)
摘要:
From:https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm [问题] am using npm v1.0.104/
阅读全文
posted @ 2018-05-28 14:39
今夜太冷
阅读(359)
推荐(0)
摘要:
From: https://bytenota.com/javascript-convert-image-to-base64-string/ his post shows you two approaches how to convert an image to a Base64 string usi
阅读全文
posted @ 2018-05-28 11:41
今夜太冷
阅读(1000)
推荐(0)
摘要:
来自: https://ourcodeworld.com/articles/read/182/the-canvas-has-been-tainted-by-cross-origin-data-and-tainted-canvases-may-not-be-exported These errors
阅读全文
posted @ 2018-05-28 11:07
今夜太冷
阅读(4537)
推荐(0)
摘要:
canvas绘制图片,由于浏览器的安全考虑,如果在使用canvas绘图的过程中,使用到了外域的图片资源,那么在toDataURL()时会抛出安全异常: 解决方案1. 如果想使用toDataURL()生成图片文件的话,在canvas绘图过程中使用的图片应该是当前域下的。 解决方案2. 访问的服务器允许
阅读全文
posted @ 2018-05-28 10:59
今夜太冷
阅读(2287)
推荐(0)
摘要:
From: http://www.martinbroadhurst.com/replacing-all-occurrences-of-a-character-in-a-stdstring.html This can be done using the standard library or Boos
阅读全文
posted @ 2018-05-23 17:22
今夜太冷
阅读(177)
推荐(0)
摘要:
在一个c++的.h文件中加入了这段代码: #include <string> using namespace std; std::string escapeStr(const std::string& input) { return std::string(input); } 结果总是报错: one
阅读全文
posted @ 2018-05-23 16:11
今夜太冷
阅读(3649)
推荐(0)
摘要:
在上述的代码中,红色波浪线的部分编译的时候报错: error C2976: 'std::map' : too few template arguments 换成std::map<std::string, std::string>也是一样的错误. 怎么回事那? [解决方法] 包含 map就可以了. #
阅读全文
posted @ 2018-05-22 14:24
今夜太冷
阅读(2021)
推荐(0)
摘要:
From: https://www.cnet.com/how-to/always-run-a-program-in-administrator-mode-in-windows-10/ If you're sick of seeing those UAC pop-ups, you can get ri
阅读全文
posted @ 2018-05-08 15:51
今夜太冷
阅读(375)
推荐(0)
摘要:
Why is it that whenever I do :- JSON.parse('"something"') it just parses fine but when I do:- var m = "something"; JSON.parse(m); it gives me an error
阅读全文
posted @ 2018-05-05 14:25
今夜太冷
阅读(469)
推荐(0)
摘要:
http://jni4net.com/ 1) 从这里下载binaries,然后解压缩. https://sourceforge.net/projects/jni4net/files/ 2) 创建一个.net的console application. 3) 讲lib目录中的jni4net.n-0.8.
阅读全文
posted @ 2018-05-03 16:47
今夜太冷
阅读(2273)
推荐(0)
摘要:
From: https://stackoverflow.com/questions/41042368/cannot-generate-c-sharp-proxy-dll-with-jni4net-tool-running-batch-file-as-trust I am working on get
阅读全文
posted @ 2018-05-03 16:19
今夜太冷
阅读(484)
推荐(0)
摘要:
From: https://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.html Overview Java access to the Domino Objects is through the high-le
阅读全文
posted @ 2018-05-03 16:16
今夜太冷
阅读(269)
推荐(0)
摘要:
在MFC中使用sprintf()函数将CString转换成char[]时,char[]只接受第一个字符使用的是VS2008CStringname;dbName="test";charcname[100];sprintf(cname,"%s",name);执行完这个后cname只保存第一个字符,也就是t,郁闷... [解决方法] CString是unicode编码用%S试试
阅读全文
posted @ 2018-04-21 17:22
今夜太冷
阅读(518)
推荐(0)
摘要:
使用Windows 10 的朋友可能会遇到这样的情况,开机后没开什么程序,磁盘占用却非常高,硬盘转个不停,这是怎么回事,又该如何解决呢? 看了网上的这两票文章 https://jingyan.baidu.com/article/4b52d702ab67b2fc5c774bfd.html https:
阅读全文
posted @ 2018-04-20 09:46
今夜太冷
阅读(2217)
推荐(0)
摘要:
这篇文章解释的简单明了: https://stackoverflow.com/questions/10422034/when-to-use-extern-in-c This comes in useful when you have global variables. You declare the
阅读全文
posted @ 2018-04-18 16:18
今夜太冷
阅读(264)
推荐(0)