I hereby claim:
- I am therightstuff on github.
- I am therightstuff (https://keybase.io/therightstuff) on keybase.
- I have a public key ASDOnjEkmg8wYq0rWQpvUcp4uItnJCBTX_5EBOrm7FcPjAo
To claim this, I am signing this object:
// MIDDLEWARE | |
// must be defined before routing configured | |
server.use(restify.plugins.bodyParser()); | |
server.use(restify.plugins.queryParser()); | |
// CORS must be first | |
var allowedMethods = [ | |
"OPTIONS", |
// ensure window object available | |
var window = self; | |
self.addEventListener('message', function (e) { | |
var payload = e.data; | |
var result = null; | |
var err = null; | |
switch (payload.cmd) { | |
case 'sampleCommand': |
var util = require("util"); | |
// simple class | |
function A() { | |
this.self= this; | |
this.className = "classA"; | |
this.myVar = "ownerA"; | |
} | |
// class methods |
<html> | |
<head> | |
<title>Online JSON / CSV Converter</title> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
<script src="https://fastcdn.org/FileSaver.js/1.1.20151003/FileSaver.js"></script> | |
<script language="javascript"> | |
var conversionStyle; | |
var prefixConnector; | |
var delimiter, delimiterCharacter; |
I hereby claim:
To claim this, I am signing this object:
[ | |
"201704230706451_AutomaticMigration", | |
"201704230705538_AutomaticMigration" | |
] |
#!/bin/bash | |
# add a parent commit to the specified commit, ideal | |
# for establishing the other parent of a squashed merge | |
# lifted from https://stackoverflow.com/a/41243690/2860309 | |
# usage: ./add_parent.sh TARGET_COMMIT_ID NEW_PARENT_COMMIT_ID | |
set -ex | |
target_commit=$1 |
/* | |
Motivation: | |
A shuffler that ensures that no items in a list (a music playlist in particular) are left behind. | |
Mechanism: | |
When an item in the current shuffle group is used, it is moved to the next shuffle group and the next shuffle group is reshuffled. | |
Shuffling the current group doesn't affect the number of items remaining in the current shuffle group. | |
Drawback: | |
Shuffling the current group when there's only one item remaining will have no effect, the item must be consumed (to preserve fairness) and only then will be shuffled in to the next group |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace MyProject.Data.Encryption | |
{ | |
public class AES | |
{ | |
// https://stackoverflow.com/a/18502617/2860309 |
If you're looking for a quick and painless entry into AWS serverless development with CDK, either of these two links is preferable to reading excerpts from this gist.
Article: https://www.industrialcuriosity.com//2020/06/a-templated-guide-to-aws-serverless.html
Source repository: https://github.com/therightstuff/aws-cdk-js-dev-guide