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
package ru.wowworks.wowworker.utils.type; | |
import com.squareup.moshi.FromJson; | |
import com.squareup.moshi.ToJson; | |
import io.realm.RealmList; | |
import io.realm.RealmObject; | |
public class RealmString extends RealmObject { |
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/python3 | |
import re | |
from sys import argv | |
p = re.compile('(\s+@apiSuccess\s)({+.+}+)(\s(\w+|[.]+)+)(.*)') | |
objType = 'Object' | |
objArr = 'Object[]' |
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
private HashMap<String, Integer> generatePermissionHashTab(String[] permissions) { | |
HashMap<String, Integer> permissionsHashTab = new HashMap<>(); | |
for (String p : permissions) { | |
permissionsHashTab.put(p, PackageManager.PERMISSION_DENIED); | |
} | |
return permissionsHashTab; | |
} | |
protected void checkPermissions(@NonNull String[] permissions, int requestCode, IPermissionCallback callback) { |
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
/** | |
* Kalman filter implementation | |
*/ | |
public class KalmanFilterSimple { | |
private float X0; | |
private float P0; | |
private float F; | |
private float Q; |
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 static List<int> AllIndexesOf (this string str, string value) | |
{ | |
if (System.String.IsNullOrEmpty (value)) | |
throw new ArgumentException ("строка не может быть пустой", "value"); | |
List<int> indexes = new List<int> (); | |
for (int index = 0;; index += value.Length) { | |
index = str.IndexOf (value, index); | |
if (index == -1) | |
return indexes; | |
indexes.Add (index); |
NewerOlder