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
{ | |
"app": "python3 app.py", | |
"context": { | |
"serviceName": "vpc-cdk", | |
"dev": { | |
"cidr": "10.60.0.0/16", | |
"vpcAzCount": 1, | |
"region": "us-east-1" | |
} | |
} |
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"; | |
var fs = require('fs'); | |
var path = require('path'); | |
var AWS = require('aws-sdk'); | |
var util = require('util'); | |
var stream = require('readable-stream'); | |
var _ = require('lodash'); |
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
exports.handler = (event, context, callback) => { | |
var AWS = require('aws-sdk'); | |
AWS.config.update({region: 'eu-west-1'}); // configure region | |
const athena = new AWS.Athena(); | |
athena.getNamedQuery({ NamedQueryId: '<your-query-id>' }, function(err, data) { | |
console.log('getNamedQuery', err, data); | |
if (!err) { | |
var params = { | |
QueryString: data.NamedQuery.QueryString, |
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 UnityEngine; | |
using System.Collections; | |
using System; | |
using BestHTTP; | |
using BestHTTP.SocketIO; | |
public class SimpleChat : MonoBehaviour { | |
public UILabel lblChatMessages; |
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
/* | |
Asymmetric Encryption Sample in Node.js: Encrypt and Decrypt using Password as a key(SECRET_KEY) | |
Algorithm: des-ede3-cbc (Three key Triple-DES EDE in CBC mode) | |
[email protected] | |
@thepumpkin | |
*/ | |
var assert = require('assert') | |
var crypto = require('crypto') | |
var Buffer = require('buffer').Buffer |
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
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |