Skip to content

Instantly share code, notes, and snippets.

View nuriyevn's full-sized avatar
😎

nuriyevn

😎
View GitHub Profile
@nuriyevn
nuriyevn / asdas
Last active June 22, 2026 10:31
asdas
Migration difficulties
Following their displacement, the Applicants attempted to regularise their status abroad.
---- Poland
The Applicants initially settled in Poland and sought to establish a stable and lawful life there.
However, the Second Applicant encountered a legal and administrative deadlock arising from the interaction between temporary protection mechanisms and ordinary immigration procedures.
@nuriyevn
nuriyevn / 4.Migration Diffifculties
Last active June 22, 2026 10:28
Fact I.4 - Migration Difficulties - excerpt from ECHR Application against Ukraine
Migration difficulties
Following their displacement, the Applicants attempted to regularise their status abroad.
---- Poland
The Applicants initially settled in Poland and sought to establish a stable and lawful life there.
However, the Second Applicant encountered a legal and administrative deadlock arising from the interaction between temporary protection mechanisms and ordinary immigration procedures.
@nuriyevn
nuriyevn / gist:23e224b1c8db2e7b0d94ce6ee3d454c1
Last active May 26, 2026 15:42
portfolio expected return + portfolio variance/covariance calculation from Modern Portfolio Theory
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main() {
vector<double> weights = {0.4, 0.3, 0.3};
vector<double> returns = {0.10, 0.15, 0.08};
vector<double> stddev = {0.20, 0.25, 0.10};
import time
import os
import websocket
import json
from dotenv import load_dotenv
load_dotenv()
api_key = os.environ.get('binance_api')
api_secret = os.environ.get('binance_secret')
def on_message(ws, message):
<html>
<head><title>Ordering notice</title></head>
<body>
<h1>Ordering notice</h1>
<p>Dear {{ person_name }},</p>
<p>Thanks for placing an order from {{ company }}. It's scheduled to
ship on {{ ship_date|date:"F j, Y" }}.</p>
<p>Here are the items you've ordered:</p>
<ul>
{% for item in item_list %}
def solve(s):
l = s.split()
new_list = []
stringLen = len(s)
newString = ''
awaitingWord = True
for i in range(stringLen):
import string
alpha = string.ascii_lowercase
n = int(input())
L = []
for i in range(n):
s = "-".join(alpha[i:n])
L.append((s[::-1]+s[1:]).center(4*n-3, "-"))
print('\n'.join(L[:0:-1]+L))
def print_rangoli(size):
central = ''
for i in range(size-1, 0, -1):
central = central + chr(int(ord('a') + i)) + '-'
central = central + chr(int(ord('a') + 0)) + central[::-1]
width = len(central)
p = ''
for j in range(size-1, -1, -1):
public class StarterApplication extends Application {
public static final String TAG = "Starter";
@Override
public void onCreate() {
super.onCreate();
// Enable Local Datastore.
Parse.enableLocalDatastore(this);
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />