Skip to content

Instantly share code, notes, and snippets.

@rajabiy
rajabiy / flutter.xml
Created August 18, 2021 16:17
api.flutter.dev is blocked
<entry>
<version>2.2.3</version>
<url>https://api.flutter-io.cn/offline/flutter.docset.tar.gz</url>
</entry>
@rajabiy
rajabiy / make-seed-and-deploy-ubuntu.yml
Last active September 19, 2022 17:53
here little exsample how to deploy ubuntu ova into vcenter viaansible and cloud-init.iso
- hosts: localhost
become: no
vars:
vcenter_username: vcenter_user@vsphere.local
vcenter_password: "vspheresupersecretpassword"
tasks:
- name: Seed directory
file:
path: "{{lookup('env', 'PWD')}}/seed/{{hostvars[item].inventory_hostname}}"
state: directory
@rajabiy
rajabiy / Asset.java
Last active April 3, 2022 13:59
Android two way data binding for date field with @InverseBindingAdapter and @BindingAdapter decorators for Realm model
package uz.aminiy.inventory.models;
import android.databinding.BindingAdapter;
import android.databinding.InverseBindingAdapter;
import android.widget.TextView;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;
import java.util.UUID;
@rajabiy
rajabiy / main.cpp
Created January 25, 2016 17:52
Cramer's rule is an explicit formula for the solution of a system of linear equations with as many equations as unknowns
#include <math.h>
#include <iostream>
using namespace std;
double **minor(double **arr, int ident, int n);
double determinant(double **arr, int ident);
double *kramer(double **arr, double *col_vector, int ident);