Title: Simple Sabotage Field Manual Author: Strategic Services Office of Strategic Services
This file contains 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
#!/bin/bash | |
set -e | |
CURRENT_NAME="Zauberantrag" | |
CURRENT_OTP="zauberantrag" | |
NEW_NAME="Wunderantrag" | |
NEW_OTP="wunderantrag" |
I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
---|
This file contains 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
SMS_LENGTH = 160 | |
MPM_SIZE_LONG = 16 | |
MPM_SIZE_SHORT = 14 | |
MPM_SHORT_LIMIT = 1314 | |
def send_sms_message(text, to, from) | |
unless text.length > SMS_LENGTH | |
deliver_message_via_carrier(text, to, from) | |
else | |
parts = text.scan(/.{1,#{SMS_LENGTH - (text.length > MPM_SHORT_LIMIT ? MPM_SIZE_LONG : MPM_SIZE_SHORT)}}/) |
This file contains 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
def read_readme? | |
while true | |
print 'Did you read README.md? [y/n]: ' | |
case gets.strip | |
when 'y', 'Y', 'yes' | |
puts 'Awesome!' | |
break | |
when /\A[nN]o?\Z/ |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
<style>@import 'm.css';</style> | |
</head> | |
<body> |