https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Stable&version=VS18
https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=enterprise&channel=Stable&version=VS18
| var CryptoJS = require('crypto-js') | |
| var request = require('request-promise') | |
| /* | |
| * npm install crypto-js request-promise request | |
| * node wx_t1t_hack.js | |
| */ | |
| // export function testEncription(msg, fullKey) { | |
| // var fullKey = fullKey.slice(0, 16) |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): |
| // JSON to Uint8Array parsing and visa versa | |
| // (Intended Bluetooth communication on Cordova) | |
| var JsonToArray = function(json) | |
| { | |
| var str = JSON.stringify(json, null, 0); | |
| var ret = new Uint8Array(str.length); | |
| for (var i = 0; i < str.length; i++) { | |
| ret[i] = str.charCodeAt(i); | |
| } |
| Step 1 - Create .crt file | |
| cat domainname.crt domainname.ca-bundle > domainname-ssl-bundle.crt | |
| Step 2- | |
| Add lines for ssl_certificate in nginx configuration | |
| server { | |
| listen 80 default_server; |
| import unittest | |
| from app import app | |
| from cStringIO import StringIO | |
| class UploadTest(unittest.TestCase): | |
| def setUp(self): | |
| self.app = app | |
| self.app.config['TESTING'] = True | |
| self.client = self.app.test_client() |
| @echo off | |
| set SRC=C:\some-path | |
| set TARGET=\\REMOTE-HOST\other-path | |
| set FILE_LIST=(file1.py file2.py file3.py file4.py) | |
| for %%i in %FILE_LIST% do copy /Y %SRC%\%%i %TARGET% |