This file contains 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
(function () { | |
Object.defineProperties(window, { | |
'isMobile': { | |
value: (/Android|iPhone|iPad|iPod|webOS|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)), | |
writable: false, | |
}, | |
'isiOS': { | |
value: (/iPhone|iPad|iPod/i.test(navigator.userAgent)), | |
writable: false, | |
} |
This file contains 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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'IndexedStack Demo', | |
debugShowCheckedModeBanner: false, |
This file contains 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 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
typedef Json = Map<String, dynamic>; | |
class User { | |
final int id; | |
final String firstName; |
This file contains 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
/// | |
/// docs: https://api.flutter.dev/flutter/widgets/CustomMultiChildLayout-class.html | |
/// | |
import 'package:flutter/material.dart'; | |
void main() => runApp(const ExampleApp()); | |
class ExampleApp extends StatelessWidget { | |
const ExampleApp({super.key}); |
This file contains 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 'package:flutter/material.dart'; | |
import 'dart:async'; | |
void main() { | |
/// | |
/// Example 1 | |
/// | |
// final myStream = NumberCreator().stream; | |
// final subscription = myStream.listen( | |
// (data) => print('s: $data'), |
This file contains 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
// | |
// url: https://ru.wikipedia.org/wiki/SSE | |
// url: https://docs.oracle.com/cd/E36784_01/html/E36859/epmoa.html#scrolltoc | |
// | |
__declspec(align(16)) float a[4] = { 300.0, 4.0, 4.0, 12.0 }; | |
__declspec(align(16)) float b[4] = { 1.5, 2, 1, 2 }; | |
__asm { | |
movups xmm0, a; // поместить 4 переменные с плавающей точкой из a в регистр xmm0 | |
movups xmm1, b; // поместить 4 переменные с плавающей точкой из b в регистр xmm1 |
This file contains 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
# Создаём директорию под библиотеку Skia и вспомогательную утилиту, и переходим в неё | |
mkdir $HOME/deps | |
cd $HOME/deps | |
# Клонируем репозиторий тулзы и библиотеки | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
git clone -b aseprite-m81 https://github.com/aseprite/skia.git | |
export PATH="${PWD}/depot_tools:${PATH}" |
This file contains 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
# Переходим в домашний каталог | |
cd $HOME | |
# Клонируем репозиторий с зависимостями | |
git clone --recursive https://github.com/aseprite/aseprite.git | |
# Переходим в директорию aseprite | |
cd aseprite | |
# Создаём папку build и переходим в неё |
This file contains 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
# sh fakeswap.sh 2048 | |
fakeswap.sh: 6: fakeswap.sh: Bad substitution | |
Внимание!!! Это bash-скрипт | |
# bash fakeswap.sh 2048 | |
# 1. Сохраняем скрипт как fakeswap.sh | |
# ----------------------------------- |
NewerOlder