Skip to content

Instantly share code, notes, and snippets.

View nuriyevn's full-sized avatar
😎

nuriyevn

😎
View GitHub Profile
package com.example.guesscelebrities;
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.telephony.euicc.DownloadableSubscription;
import android.util.Log;
import java.io.InputStream;
package com.example.downloadwebcontent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import java.util.concurrent.ExecutionException;
sudo raspi-config
@nuriyevn
nuriyevn / binary_search.py
Created March 26, 2019 13:04
Binary Search
def binary_search(list, item):
low = 0
high = len(list) - 1
while (low <= high):
mid = int((low + high) / 2)
guess = list[mid]
if guess == item:
return mid
if guess > item:
<div class="col-sm-6 col-md-8"><h1 class="blogpost-title text-left text-dark m-t-sm" headline="Где попрактиковаться в программировании: 30 ресурсов" ng-non-bindable="">Где попрактиковаться в программировании: 30 ресурсов</h1><div class="blogpost-description text-lg m-t-lg text-dark" style="opacity:0.6" ng-non-bindable="">Задачки, упражнения и соревнования для начинающих и опытных кодеров.</div><div class="m-t-md">28 января 20193 минуты6664</div><div class="m-b-lg"></div><div class="blogpost-content content_text content js-mediator-article js-blogpost-content" ng-non-bindable="" articlebody="<span>Задачки, упражнения и соревнования для начинающих и опытных кодеров.</span> <p><img src=&quot;https://uploads.hb.cldmail.ru/geekbrains/public/ckeditor_assets/pictures/6278/content-b2ed82bb1ce2a91ae26aeb05839ddf0e.jpeg&quot;></p>
<p>Быть настоящим программистом — это не только смотреть тысячи часов видео, но и писать десятки тысяч строк кода. Подобрали для вас полезные ресурсы, на которых можно размяться в программир
@nuriyevn
nuriyevn / vigenere.cpp
Created January 23, 2019 12:38
Chipher Vigenere
int main()
{
std::string str = "ATTACKATDAWN";
std::string key = "LEMONLEMONLE";
std::string result;
int keyIndex = 0;
char s_buffer[100];
<table style="width: 922px;">
<tbody>
<tr>
<td style="width: 22px;">&nbsp;id</td>
<td style="width: 74px;">Worker ID&nbsp;</td>
<td style="width: 116px;">&nbsp;Hashrate1 (2,5s)</td>
<td style="width: 112px;">Hashrate2 (60s)&nbsp;</td>
<td style="width: 113px;">Hashrate3 (15m)</td>
<td style="width: 81px;">Pool Name&nbsp;</td>
<td style="width: 109px;">CryptoCurrency&nbsp;</td>
@nuriyevn
nuriyevn / hash.c
Created November 2, 2016 17:38 — forked from tonious/hash.c
A quick hashtable implementation in c.
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;
@nuriyevn
nuriyevn / convert.sh
Last active October 29, 2016 13:07 — forked from akost/convert.sh
Bash script for recursive file convertion windows-1251 --> utf-8
#!/bin/bash
# Recursive file convertion windows-1251 --> utf-8
# Place this file in the root of your site, add execute permission and run
# Converts *.php, *.html, *.css, *.js files.
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.sql" -o -name "*.vbs" -type f |
while read file
do