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
{.experimental.} | |
import macros | |
import tables | |
macro ctor*(none: untyped): auto = | |
let args = callsite() | |
if args[1].kind != nnkProcDef: | |
error("`ctor` pragma is used only with procedures.") | |
var procTemplate = args[1] | |
var paramsTemplate = procTemplate[3] |
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
diff --git a/Source/Urho3D/Graphics/AnimationState.cpp b/Source/Urho3D/Graphics/AnimationState.cpp | |
index a6a22d16b..3d54836e9 100644 | |
--- a/Source/Urho3D/Graphics/AnimationState.cpp | |
+++ b/Source/Urho3D/Graphics/AnimationState.cpp | |
@@ -138,7 +138,10 @@ void AnimationState::SetStartBone(Bone* startBone) | |
const StringHash& nameHash = i->second_.nameHash_; | |
if (nameHash == startBone->nameHash_) | |
+ { | |
trackBone = startBone; |
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 test() | |
{ | |
if (1 != 1) | |
{ | |
print('workie 1') | |
} | |
else if (2 == 3) | |
{ | |
print('....') | |
} |
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
Usage: [OPTIONS] | |
Options: | |
-h,--help Print this help message and exit | |
--headless Do not initialize graphics subsystem | |
--nolimit Disable frame limiter | |
--flushgpu Enable GPU flushing | |
--gl2 Force use of OpenGL2 | |
--landscape Force landscape orientation |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; | |
;;; Copyright (C), zznop, zznop0x90@gmail.com | |
;;; | |
;;; This software may be modified and distributed under the terms | |
;;; of the MIT license. See the LICENSE file for details. | |
;;; | |
;;; DESCRIPTION | |
;;; | |
;;; This PoC shellcode is meant to be compiled as a blob and prepended to a ELF |
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
## | |
## Copyright (c) 2018 Rokas Kupstys | |
## | |
## Permission is hereby granted, free of charge, to any person obtaining a copy | |
## of this software and associated documentation files (the "Software"), to deal | |
## in the Software without restriction, including without limitation the rights | |
## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
## copies of the Software, and to permit persons to whom the Software is | |
## furnished to do so, subject to the following conditions: | |
## |
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 implementation of the object factory. | |
template <class T> class ObjectFactoryImpl : public ObjectFactory | |
{ | |
public: | |
/// Construct. | |
explicit ObjectFactoryImpl(Context* context) : | |
ObjectFactory(context) | |
{ | |
typeInfo_ = T::GetTypeInfoStatic(); | |
allocator_ = AllocatorInitialize(sizeof(T)); |
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/bash | |
if [ "$EUID" != "0" ]; | |
then | |
echo "Please run as root." | |
exit | |
fi | |
driver="$1" | |
shift |
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 sh | |
param() { | |
if [[ "$1" == "" ]]; | |
then | |
echo $2 | |
else | |
echo $1 | |
fi | |
} |
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
// | |
// Copyright (c) 2018 Rokas Kupstys | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
OlderNewer