Skip to content

Instantly share code, notes, and snippets.

View dezmontx's full-sized avatar
🤯

Dmitry Maksimov dezmontx

🤯
View GitHub Profile
@dezmontx
dezmontx / patient.json
Created February 4, 2020 09:19
Пример создания пациента
{
"_class":"spg.model.Patient",
"dob":"Invalid date",
"familyName":"oijoij",
"gender":"Мужской",
"givenName":"oijoij",
"address":" Алтай Онгудайский Ининское Ело - 09-8-09809-8",
"addressRegistration":" Красноярский Березовский Маганский Березовка - -908-098-098-098",
"jobTitle":"",
"middleName":"iojoij",
...
<detail>
<band height="112">
...
<textField>
<reportElement x="0" y="30" width="40" height="30" uuid="fb393215-5b6f-4261-b556-9a567c12782e"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
#!python
from numpy import cos, sin, pi, absolute, arange
from scipy.signal import kaiserord, lfilter, firwin, freqz
from pylab import figure, clf, plot, xlabel, ylabel, xlim, ylim, title, grid, axes, show
#------------------------------------------------
# Create a signal for demonstration.
#------------------------------------------------
-- get elemet for field
-- field i j row
get :: [[Int]] -> Int -> Int-> Int
get field i j = (field!!i)!!j
-- get count of neighborhoods for element
-- field i j count
getCountNeighbor :: [[Int]] -> Int -> Int -> Int
getCountNeighbor field i j = (get field (i - 1) (j - 1))
printField :: [[Integer]] -> IO()
printField [] = print "-----------"
printField (hed:tal) = do
print hed
printField tal
main = printField [[1,1,1],[1,1,1],[1,1,1]]
@Override
public boolean equals(Object obj) {
if (obj instanceof Matrix) {
for(int i = 0;i<((Matrix)obj).getSize().getRows();i++) {
for(int j = 0;j<((Matrix)obj).getSize().getColumns();j++) {
if(this.matrix[i][j]!=((Matrix)obj).getElem(i, j)) {
return false;
}
}
}
private static final String LINK = "https://play.google.com/store/apps/details?id=com.yourapppackage";
public static void shareWithYourFriend(Activity context) {
try {
final Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, context.getResources().getString(R.string.appNameForShare));
String shareText = "\n" + context.getResources().getString(R.string.titleForShare) + "\n\n";
shareText = shareText + LINK + "\n\n";
intent.putExtra(Intent.EXTRA_TEXT, shareText);
context.startActivity(Intent.createChooser(intent, context.getResources().getString(R.string.subtitleForShare)));