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
| package org.nevack.nevedomskymobdev.welcome; | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.support.annotation.Nullable; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
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
| final PackageManager manager = context.getPackageManager(); | |
| Intent intent = new Intent(Intent.ACTION_MAIN); | |
| intent.addCategory(Intent.CATEGORY_LAUNCHER); | |
| final List<ResolveInfo> apps = manager.queryIntentActivities(intent, PackageManager.GET_META_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
| EXECUTABLE = lab | |
| SOURCE = $(shell ls *asm | sed 1q) | |
| OBJ = $(shell echo $(SOURCE) | cut -f 1 -d '.').o | |
| AS = /usr/local/bin/nasm | |
| ASFLAGS = -f macho | |
| LD = ld | |
| LDFLAGS = -macosx_version_min 10.7.0 -o $(EXECUTABLE) $(OBJ) | |
| DBG = lldb | |
| .PHONY: $(EXECUTABLE) |
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
| #!/usr/bin/python3 | |
| # Dmitry Nevedomsky, Yandex LLC, 2018 | |
| import urllib.request | |
| import zipfile | |
| import sys | |
| import os | |
| import psutil | |
| import time | |
| import subprocess | |
| import argparse |
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 System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| namespace Metrologia | |
| { | |
| internal static class Program | |
| { |
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
| import os | |
| from PIL import Image, ImageDraw, ImageFont | |
| import numpy | |
| def find_coefficients(pa, pb): | |
| matrix = [] | |
| for p1, p2 in zip(pa, pb): | |
| matrix.append([p1[0], p1[1], 1, 0, 0, 0, -p2[0]*p1[0], -p2[0]*p1[1]]) | |
| matrix.append([0, 0, 0, p1[0], p1[1], 1, -p2[1]*p1[0], -p2[1]*p1[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
| import com.beust.klaxon.Klaxon | |
| import com.github.kittinunf.fuel.httpGet | |
| import com.github.kittinunf.result.Result | |
| data class PapaJohnsContainer ( | |
| val codes: List<PapaJohnsCode> | |
| ) | |
| data class PapaJohnsCode ( | |
| val name: String, |
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
| # Get MAC address | |
| sudo defaults read /Library/Preferences/com.apple.Bluetooth.plist DeviceCache | |
| # Blacklist it | |
| sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist IgnoredDevices -array-add '70-26-05-b1-18-5f' |
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
| sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil enroll DeveloperSeed |
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
| ; Utility routines for NASM macOS 32bit | |
| ; Nevedomsky Dmitry, 2018 | |
| ; macOS 10.15 Catalina removed support for executing 32bit apps | |
| ; See util64.asm for 64bit version | |
| ;============================================================================== | |
| ; CONSTANTS | |
| ;============================================================================== |
OlderNewer