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
Небольшая помощь в Smali | |
(Будет дополняться) | |
# | |
Общая информация | |
# | |
Smali | |
Виды(Types) | |
Байт-код Dalvik имеет два основных класса типов, примитивные типы и ссылочные типы. Типы ссылок - это объекты и массивы, все остальное является примитивным. |
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.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Input; | |
namespace Sly.Toolkit |
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
void Swap(ref float lhs, ref float rhs) | |
{ | |
float tmp = lhs; | |
lhs = rhs; | |
rhs = tmp; | |
} | |
void InplaceFlipX(float[,] arr) | |
{ |
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
from elftools.elf.elffile import ELFFile | |
from zipfile import ZipFile | |
import gzip, string | |
from io import StringIO, BytesIO | |
data = open('libmonodroid_bundle_app.so', "rb") | |
elffile = ELFFile(data) | |
section = elffile.get_section_by_name('.dynsym') | |
data.seek(0) | |
data_read = data.read() |
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.Windows; | |
namespace WpfLoadedClassHandler | |
{ | |
/// <summary> | |
/// Shows how to globally handle Loaded event. | |
/// Workarounds bug: https://connect.microsoft.com/VisualStudio/feedback/details/511753/window-loadedevent-doesnt-work-properly-when-used-to-register-a-class-event-handler | |
/// Discussed: http://stackoverflow.com/questions/11455800/routed-event-class-handler-for-loadedevent-does-not-work-for-most-classes | |
/// </summary> |