This file contains hidden or 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.Text.RegularExpressions; | |
using Nancy.ViewEngines.SuperSimpleViewEngine; | |
namespace Residata.Analysis.Web.Infrastructure { | |
/// <summary> | |
/// Null Check Matcher for the super simple view engine. | |
/// | |
/// This checks if the model is null - or not! | |
/// </summary> | |
/// <example> |
This file contains hidden or 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; | |
namespace Residata.Platform.Server.Helper { | |
public static class AppDomainHelper { | |
public static T CreateInstanceAndUnwrap<T>(this AppDomain appDomain) { | |
return (T)appDomain.CreateInstanceAndUnwrap(typeof (T).Assembly.FullName, typeof (T).FullName); | |
} | |
} | |
} |
This file contains hidden or 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
VBoxManage modifyhd "Windows 8.1 Dev.vdi" --resize 30720 | |
Manage Computer -> Disk Manager -> 25GB HD -> extend Volume -> select 5GB -> Finish |
This file contains hidden or 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 | |
namespace TheInsider\WebServiceBundle\Entity; | |
use Doctrine\Common\Persistence\Mapping\ClassMetadata; | |
use Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder; | |
use TheInsider\Domain\Entity\Article as DomainArticle; | |
/** | |
* Doctrine implementation of the article domain entity. | |
* | |
* @author Martin Lantzsch <[email protected]> |
This file contains hidden or 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 TaskProcessor.Contracts; | |
namespace TaskProcessor.Tasks | |
{ | |
/// <summary> | |
/// A simple task which prints a message to stdout. | |
/// </summary> | |
public class MessageTask : ITask | |
{ |
This file contains hidden or 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 TABLE `data` ( | |
`name` varchar(255) DEFAULT NULL, | |
`value` blob | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
insert into crypt_test.data values("hello.world", AES_ENCRYPT("test", SHA2("ld", 512))); | |
select CONVERT(AES_DECRYPT(value, SHA2("ld", 512)) using UTF8) as d FROM crypt_test.data |
This file contains hidden or 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
if[ \n]*\([0]*[^ ]*\$[a-z0-9-_]+[ ]*=[^=]+[ ]*[^ ]+[ ]*\) |
This file contains hidden or 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 fak(int n); | |
void main() { | |
printf("%d\n", fak(3)); | |
} | |
int fak(int n) { | |
if(n == 1) { |
This file contains hidden or 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> | |
void main() { | |
int i, z; | |
int arr[5] = {6, 7, 1, 3, 2}; | |
for(i = 5; i >= 0; i--) { | |
for(z = 0; z < i - 1; z++) { | |
if(arr[z] > arr[z + 1]) { | |
int tmp = arr[z]; |
This file contains hidden or 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
Array | |
( | |
[0] => teamspeak2 | |
[1] => help | |
[2] => ver | |
[3] => banadd | |
[4] => banclear | |
[5] => bandel | |
[6] => banlist | |
[7] => banplayer |
NewerOlder