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> | |
#include <Windows.h> | |
struct Name | |
{ | |
char FirstName[100]; | |
char LastName[100]; | |
char *Array[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
internal class CustomDynamicObject : DynamicObject | |
{ | |
private readonly IDictionary<string, object> _values; | |
public CustomDynamicObject() | |
{ | |
_values = new Dictionary<string, object>(); | |
} | |
public virtual bool HasDynamicMember(string name) |
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.IO; | |
using System.Security.Cryptography.Pkcs; | |
using System.Security.Cryptography.Xml; | |
namespace CmsDumper | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
public class CustomMiddleWare : OwinMiddleware | |
{ | |
public CustomMiddleWare(OwinMiddleware next) | |
: base(next) { } | |
public override Task Invoke(IOwinContext context) | |
{ | |
try | |
{ | |
if (context.Request.QueryString.HasValue) |
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
public class MultiSelectItemAnimator extends DefaultItemAnimator { | |
private static final long DURATION = 150; | |
private final ArrayMap<RecyclerView.ViewHolder, AnimatorInfo> animatorMap = new ArrayMap<>(); | |
private final Animator.AnimatorListener resetListener = new ViewObjectAnimatorListener() { | |
@Override | |
public void onAnimationEnd(Animator animation, View view) { | |
view.setTranslationX(0f); | |
} |
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 python3 | |
# Needs: Python 3.5+, Flask, PyCryptoDome | |
# server.pem, rsapubkey.pem + rsaprivkey.pem (1024-bit) in the current directory | |
# | |
# What it does: | |
# Pretends to be the "CT-KIP" web service (https://tools.ietf.org/html/rfc3948) that | |
# RSA SecurID Token for Windows v5.0.x talks to to set up a new token, using an | |
# authentication code. | |
# |