This file contains hidden or 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
| import kotlinx.coroutines.CancellationException | |
| import kotlinx.coroutines.CoroutineExceptionHandler | |
| import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.Dispatchers | |
| import kotlinx.coroutines.SupervisorJob | |
| import kotlinx.coroutines.async | |
| import kotlinx.coroutines.delay | |
| import kotlinx.coroutines.launch | |
| import kotlinx.coroutines.plus | |
| import kotlinx.coroutines.runBlocking |
This file contains hidden or 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
| { | |
| "title": "PC Programmer", | |
| "rules": [ | |
| { | |
| "description": "Change grave accent (`) to ё in Russian layout", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "type": "input_source_if", |
This file contains hidden or 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
| import io.reactivex.Observable | |
| import io.reactivex.schedulers.Schedulers | |
| import java.util.concurrent.TimeUnit | |
| import kotlin.random.Random | |
| fun main() { | |
| /* | |
| * Output: | |
| * | |
| * 0 |
This file contains hidden or 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 com.malcolmsoft.livingcells | |
| import android.app.Activity | |
| import android.content.Intent | |
| import android.content.res.Configuration | |
| import android.graphics.Color | |
| import android.graphics.SweepGradient | |
| import android.graphics.drawable.ColorDrawable | |
| import android.graphics.drawable.Drawable | |
| import android.graphics.drawable.GradientDrawable |
This file contains hidden or 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
| #include <iostream> | |
| struct Entry { | |
| char name[20]; | |
| unsigned int price; | |
| Entry *nextEntry; | |
| }; | |
| Entry *readAlphabeticList(); | |
| Entry *sortByPrice(Entry *list); |
This file contains hidden or 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
| use winapi::shared::ntdef::LPCWSTR; | |
| use winapi::um::winuser::{BS_DEFPUSHBUTTON, SW_SHOW, WS_CHILD, WS_VISIBLE, WS_TABSTOP, WS_OVERLAPPEDWINDOW, WNDCLASSW}; | |
| use winapi::shared::minwindef::{HINSTANCE, UINT, WPARAM, LPARAM, LPVOID, DWORD}; | |
| use winapi::shared::windef::{POINT, HBRUSH, HMENU, HWND}; | |
| use winapi::um::winuser; | |
| use winapi::um::winuser::{BS_TEXT, GetWindowLongW}; | |
| use winapi::um::libloaderapi::GetModuleHandleW; | |
| use winapi::shared::minwindef::LRESULT; | |
| use winapi::shared::wtypesbase::CLSCTX_INPROC_SERVER; | |
| use std::ffi::{OsStr, OsString}; |
This file contains hidden or 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 main | |
| type IdentityProviderLocation struct { | |
| ServerUrl string `json:"server_url"` | |
| Id int `json:"id"` | |
| Login string `json:"login"` | |
| } | |
| type OpenIdentityProviderSessionResponse struct { | |
| AccessToken string `json:"access_token"` |
This file contains hidden or 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
| use std::io; | |
| use std::io::{Bytes, Read, Error, ErrorKind}; | |
| use std::str; | |
| use std::fmt; | |
| use std::fmt::{Display, Write}; | |
| use std::str::FromStr; | |
| fn main() { | |
| let result = ExpressionReader::read(io::stdin()).unwrap(); | |
| println!("Result: {:?}", result); |
This file contains hidden or 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
| extern crate rand; | |
| use std::io; | |
| use rand::os::OsRng; | |
| use rand::Rng; | |
| fn main() { | |
| let mut choice_maker = ChoiceMaker::new(); | |
| let stdin = io::stdin(); |
This file contains hidden or 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
| extern crate ftp; | |
| use ftp::FtpStream; | |
| use std::fs::File; | |
| use std::error::Error; | |
| use std::io; | |
| fn main() { | |
| let result = download("example.com:21", "anonymous", "anonymous", ".", "Test.txt"); | |
| match result { |
NewerOlder