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
cmake_minimum_required(VERSION 3.16) | |
project(test CXX) | |
set(CMAKE_CXX_STANDARD 20) | |
include(./conan.cmake) | |
set(BUILD_SHARED_LIBS false) | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(CMAKE_SYSTEM_PROCESSOR x86_64) |
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
using System; | |
using System.Net; | |
using System.Linq; | |
namespace tester { | |
public static class iptester { | |
public static IPAddress GetServerIP() { | |
var localIP = getMyAddress(); | |
var subnetmask = getSubnetMask(localIP); | |
for (byte p1 = 1; p1 < subnetmask[0]; p1++) { |
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
program dostuff | |
a = 3; | |
b = 5; | |
c = a + b; | |
write( *, * ) c | |
end program dostuff |
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
#include <stdio.h> | |
int main(){ | |
int a = 3; | |
int b = 5; | |
int c = 3 + 5; | |
printf("%i", c;) | |
} |
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
CREATE FUNCTION [dbo].[IsValidURL] (@Url VARCHAR(200)) | |
RETURNS INT | |
AS | |
BEGIN | |
IF CHARINDEX('https://', @url) <> 1 AND CHARINDEX('http://', @url) <> 1 | |
BEGIN | |
RETURN 0; -- Not a valid | |
END | |
-- Get rid of the http:// stuff |
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
<Grid ShowGridLines="True" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<TextBlock>Ich bin in der Column 1</TextBlock> | |
<TextBlock Grid.Column="1">Ich bin in der Column 2</TextBlock> | |
</Grid> |
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
@import url("//fonts.googleapis.com/css?family=Lato:400,700,900,400italic"); | |
/*! | |
* Bootstrap v3.0.0 | |
* | |
* Copyright 2013 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Designed and built with all the love in the world by @mdo and @fat. |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"><!--mce:0--></script> | |
<script src="toggle.js" type="text/javascript"><!--mce:1--></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$(".info").hide(); | |
$(".trigger").click(function(){ | |
if($('.info').css('display') == 'block') | |
$('.info').css('display', 'none'); | |
else | |
$('.info').css('display', 'block'); |
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
$('form').submit(function () { | |
$('.valid').parent('div').parent('.form-group').addClass('has-success'); | |
$('.input-validation-error').parent('div').parent('.form-group').addClass('has-error'); | |
$('.validation-summary-errors').addClass("alert alert-danger"); | |
$('.validation-summary-errors').find("ul").addClass("list-unstyled"); | |
$('.validation-summary-errors').removeClass("validation-summary-errors"); | |
}); |