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
pub fn is_prime(number: i64) -> bool { | |
if number <= 3 { | |
return number > 1; | |
} | |
if number % 2 == 0 || number % 3 == 0 { | |
return false; | |
} | |
let upper_limit = (number as f64).sqrt().floor() as i64; | |
for i in (5..=upper_limit).step_by(6){ | |
if number % i == 0 || number % (i + 2) == 0 { |
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 generate_words(template): | |
word_list = [] | |
while len(template) > 0: | |
if template[0] == '[': | |
index = template.index(']') | |
options = list(template[1: index]) | |
if len(options) == 1: | |
options.append('') | |
new_word_list = [] | |
for option in options: |
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
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
ServerAdmin admin@example.com | |
ServerName jenkins.example.com | |
ProxyRequests off | |
DocumentRoot /var/www/jenkins.example.com/public_html | |
SSLProxyEngine on | |
SSLEngine on | |
ProxyPreserveHost On |
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
<VirtualHost *:80> | |
ServerAdmin admin@example.com | |
ServerName jenkins.example.com | |
ErrorLog /var/www/jenkins.example.com/log/error.log | |
CustomLog /var/www/jenkins.example.com/log/access.log combined | |
# Possible values include: debug, info, notice, warn, error, crit, | |
# alert, emerg. | |
LogLevel error |