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
server { | |
listen ip; | |
server_name proxyhost; | |
location / { | |
proxy_pass http://some.source/folder/; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
<?php | |
/** | |
* Template Name: Bug Submit Page Template | |
* | |
* Displays the Bug Library Bug Submit Template. | |
* | |
* @package ThemeGrill | |
* @subpackage Spacious | |
* @since Spacious 1.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
<?php | |
// Load configuration | |
$f3->config('config.ini'); | |
// Prepare the database | |
$dbConfig = $f3->get('database'); | |
if (!isset($dbConfig['port'])) | |
$dbConfig['port'] = 3306; | |
$f3->set('DB', new DB\SQL( |
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
#!/usr/bin/env python | |
import sys, cube2crypto | |
def main(): | |
if sys.argv.__len__() == 2: | |
try: | |
challenge, answer = cube2crypto.generate_challenge(sys.argv[1]) | |
print (str(challenge) + '\n' + str(answer)) | |
except Exception: |
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
# A server block that will by default redirect all traffic HTTPS | |
server { | |
listen 80 default_server; | |
return 301 https://$host$request_uri; | |
} | |
## | |
# Global SSL configuration |
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
function sequence2D(n) { | |
if (n > 1) { | |
return this.sequence2D(n - 1) + (n + 1); | |
} else if (n == 1) { | |
return 3; | |
} else { | |
throw new RangeError("A sequence operates on real numbers."); | |
} | |
} |
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
/** | |
* Returns the greatest common divisor of a and b | |
* @param {number} a | |
* @param {number} b | |
* @returns {number} | |
*/ | |
function gcd(a, b) { | |
if (b == 0) { | |
return a; | |
} else { |
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
export default { | |
'dictDefaultMessage': 'Legen Sie Dateien hier ab um Sie hochzuladen', | |
'dictFallbackMessage': 'Ihr Browser unterstützt Drag&Drop Dateiuploads nicht', | |
'dictFallbackText': 'Benutzen Sie das Formular um Ihre Dateien hochzuladen', | |
'dictFileTooBig': 'Die Datei ist zu groß. Die maximale Dateigröße beträgt {{maxFileSize}}MB', | |
'dictInvalidFileType': 'Eine Datei dieses Typs kann nicht hochgeladen werden', | |
'dictResponseError': 'Der Server hat ihre Anfrage mit Status {{statusCode}} abgelehnt', | |
'dictCancelUpload': 'Hochladen abbrechen', | |
'dictCancelUploadConfirmation': null, | |
'dictRemoveFile': 'Datei entfernen', |
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 factorial(n): | |
if n == 1: | |
return 1 | |
elif n > 1: | |
return n * factorial(n - 1) |
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
<template> | |
<div class="modal fade" v-bind:id="id" tabindex="-1" role="dialog" aria-labelledby="Vorschau"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Schließen"><span aria-hidden="true">×</span></button> | |
<slot name="subject"><h4 class="modal-title" id="Vorschau">Titel</h4></slot> | |
</div> | |
<div class="modal-body content"> | |
<slot name="body">Inhalt der Nachricht</slot> |
OlderNewer