I hereby claim:
- I am markusl on github.
- I am markusl (https://keybase.io/markusl) on keybase.
- I have a public key ASDgPVGd9rYgJsEPT_ztMJQY5qWIZLyqEp-UKkCqAWsQQgo
To claim this, I am signing this object:
module LongestCommonSubstring | |
let get (strings:seq<string>) = | |
let first' = strings |> Seq.tryFind (fun _ -> true) | |
let isWhiteSpace = System.String.IsNullOrWhiteSpace | |
let mapper substringLength (first:string) currentStrings offset = | |
if substringLength + offset < first.Length then | |
let currentSubstring = first.Substring(offset, substringLength) | |
if not(isWhiteSpace(currentSubstring)) && |
/** | |
* RULES | |
* 1. Prefer using is_initialized() for checking the contents if the | |
* value is not assigned to a boost::optional right before | |
* 2. Prefer get() over 'operator ->', to make visible what's happening | |
* 3. Use get_value_or() if applicable, this makes the control flow less complex | |
* 4. Optionally prefix variable with 'opt' or postfix with 'Optional' | |
* | |
* DOCS http://www.boost.org/doc/libs/1_55_0/libs/optional/doc/html/index.html | |
* |
struct handle_deleter_t | |
{ | |
void operator()(HANDLE handle) { | |
if(handle != INVALID_HANDLE_VALUE) | |
CloseHandle(handle); | |
} | |
}; | |
void foo() | |
{ |
#include <array> | |
#include <sstream> | |
#include <iostream> | |
#include <iomanip> | |
#include <functional> | |
#include <cassert> | |
#include "memory_content.hpp" | |
// opcode | instruction | operands (mod 0) | operands (mod 1) | |
// -------+-------------+------------------+----------------- |
Bacon = require('baconjs') | |
serialport = require("serialport") | |
sleep = require('sleep') | |
WebSocket = require('ws') | |
winston = require('winston') | |
Keen = require('keen.io') | |
Keen = Keen or | |
configure: (e) -> | |
@_cf = e |
use std::io::{stdout, Write}; | |
// Compile: rustc -O -C lto yes.rs | |
// Use: ./yes | pv > /dev/null | |
// 97GiB 0:00:57 [3.72GiB/s] [ <=> ] | |
fn main() { | |
let buffer = "y\n".repeat(16384).into_bytes(); | |
let stdout = stdout(); | |
let mut stdout = stdout.lock(); |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env node | |
import 'source-map-support/register'; | |
import * as cdk from '@aws-cdk/core'; | |
import * as s3 from '@aws-cdk/aws-s3'; | |
/** | |
* npm run build | |
* cdk deploy --profile demo BucketStack | |
* change code | |
* cdk diff --profile demo BucketStack |
#!/usr/bin/env node | |
import 'source-map-support/register'; | |
import * as core from '@aws-cdk/core'; | |
import * as ec2 from '@aws-cdk/aws-ec2'; | |
import * as ecs from '@aws-cdk/aws-ecs'; | |
import * as ecs_patterns from '@aws-cdk/aws-ecs-patterns'; | |
// Example code from: https://docs.aws.amazon.com/cdk/latest/guide/home.html | |
export class MyEcsConstructStack extends core.Stack { | |
constructor(scope: core.App, id: string, props?: core.StackProps) { |
AWS documentation https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html
You can configure an Application Load Balancer to securely authenticate users as they access your applications. This enables you to offload the work of authenticating users to your load balancer so that your applications can focus on their business logic.
See also