Skip to content

Instantly share code, notes, and snippets.

View AnatolyUA's full-sized avatar

Anatoly AnatolyUA

  • Kherson, Ukraine
View GitHub Profile
@AnatolyUA
AnatolyUA / xam bug
Last active February 4, 2021 11:46
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[NSCoder decodeObjectOfClasses:forKey:]: This method is only implemented for coders which allowKeyedCoding.
Native stack trace:
0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 Foundation 0x00007fff20741b8a -[NSCoder decodeObjectOfClasses:forKey:error:] + 0
3 WebKit 0x00007fff28883bcb -[WKWebViewConfiguration initWithCoder:] + 87
4 Sample.Core.Mobile.iOS 0x0000000100fb0359 xamarin_dyn_objc_msgSend + 217
5 ??? 0x000000011508da00 0x0 + 4647868928
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Library/Frameworks/Xamarin.iOS.framew
@AnatolyUA
AnatolyUA / private_fork.md
Created April 6, 2020 06:34 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@AnatolyUA
AnatolyUA / file-type-icons-css.css
Created May 4, 2017 10:31
requires FontAwesome. Add .link-icon to the link
ul.link-icons,
ul.link-icons li {
list-style: none;
margin: 0;
padding: 0;
}
/*
FILE FORMAT ICONS
by Greg Schoppe (http://gschoppe.com)
USAGE: include FontAwesome on page, as shown on http://fontawesome.io
@AnatolyUA
AnatolyUA / jquery.cuttext.js
Last active December 14, 2015 11:50
Возвращает строку длиной от min до max $.cutText("some text or <p>Html<p>", min, max); $(".js-story-content-full").cutText(min, max);
(function($){
function cutAt(text, min, max) {
min = min || 0;
if (min == 0) return "";
if(text.length > min){
if (max) {
var BEST = ".!?",
GOOD = ",;",
SPACE = " ",
HELLIP = "&hellip;";