Skip to content

Instantly share code, notes, and snippets.

@moorepants
moorepants / engrxiv-papers.csv
Last active February 20, 2024 08:40
A look at download counts from Engrxiv
We can't make this file beautiful and searchable because it's too large.
GUID,Title,Abstract,status,"file url","Download count",URL,"Preprint DOI","Publisher DOI","Date created","Date modified"
mkzp5,"A stochastic multiscale peridynamic model for corrosion-induced fracture","Concrete fracture caused by corrosion of the reinforcing bars plays a key role in accelerating rebar corrosion and causing subsequent structure failure. To better predict this process, we introduce a three-phase stochastic peridynamic model, with the simplest constitutive relation (linear elastic with brittle failure), that avoids the need for explicit concrete microstructure geometry representations. The model links information from the composition at the microscale (phase volume fractions) to the macroscale fracture behavior, while costing the same as a fully homogenized model. We show that a similar peridynamic homogenized model fails in capturing the correct fracture modes/patterns in these problems where the microstructure controls failure behavior. The multiscale model is used to study fracture in reinfo
<?php
/**
* Created by Klaas Tammling.
* Project: anope2atheme
* User: ktammling
* Date: 10.10.2016
* Time: 15:55
*/
$mu_hold = 0x00000001;
Description: >
Provides Grafana hosted on ECS Fargate.
Parameters:
LogCollectionStackName:
Description: Name of the CRM log collection stack which provides the Elasticsearch cluster for monitoring data
Type: String
Resources:
GrafanaCluster:
@lorey
lorey / markdown_to_text.py
Last active March 12, 2025 17:33
Markdown to Plaintext in Python
from bs4 import BeautifulSoup
from markdown import markdown
import re
def markdown_to_text(markdown_string):
""" Converts a markdown string to plaintext """
# md -> html -> text since BeautifulSoup can extract text cleanly
html = markdown(markdown_string)
@earljon
earljon / aws_route53_delete.sh
Created August 15, 2017 08:58
Delete a Route 53 Record Set in AWS CLI
#!/bin/sh
# NOTE:
# Make sure that the value of Name, Type, TTL are the same with your DNS Record Set
HOSTED_ZONE_ID=<YOUR_HOSTED_ZONE_ID>
RESOURCE_VALUE=<YOUR_DNS_RESOURCE_VALUE-ex:IP or dns>
DNS_NAME=<YOUR_DNS_NAME-ex: subdomain.domain.com>
RECORD_TYPE=<DNS_RECORD_TYPE-ex: A, CNAME>
TTL=<TTL_VALUE>
//-----------------------------------------------//
//On page load
// - Browser -
//-----------------------------------------------//
AWS.config.update({
region: "eu-west-1"
});
var credConfig = {