- Рандомный ютуб
- Найдены дубликаты
- Мнение Владимира Епифанцева о нашем сайте
- Про Глухаря вообще молчу
- Министр социального развития, успокойтесь
- Думаю многие сталкивались
- Из-за РПЛ мы теряем великих футболистов
- У бэдкомедиана задергался глаз
- Ответ на пост «Статистика»
- Ну вы поняли.
- Марсианские хроники
- Ответ на пост «Гнилые люди в ДПС»
- Какой разврат!! Обязательно надо поехать ещё раз
- Факт от @Keyten
- Вызываю к Великой Силе Пикабу
- Прекрасные незнакомые друзья
- Random tube не работает
- Latest commit
- Git stats
- Files
- README.md
- About
Рандомный ютуб
Давал тут на работе стажерам задачку по обучению веб-разработке. В рамках задачи решили сделать что-то полезное. И так запилили RandomTube
Логика проста — при обновлении страницы загружается случайный ролик из базы добавленных на сайт. Воспроизведение «бесконечное» — после того как заканчивается один ролик тут же запускается следующий случайный.
Основная идея в том чтобы противопоставить сервис «рекомендациям» и трендам ютуба. Чтобы получить вместо умных рекомендаций чисты рандом. Поэтому всячески приветствуется добавление ссылок на интересные, но не популярные ролики совершенно любой тематики.
Ролики можно добавлять самостоятельно — они сразу же начинают показываться в случайных результатах.
Также реализовали функционал категорий. Пока добавлена одна тестовая категория «Музыка»
Здесь все идентично кроме одной особенности — есть премодерация. Сделана только для того чтобы случайно кто-то не запостил в музыку немузыкальное видео.
Очень интересно ваше мнение!
Найдены дубликаты
Раз пять нажал на F5 чтобы выпало что-нибудь чем прям приятно поделиться)
Мне кстати первые выпуски понравились, а потом я попал на какой-то очень скучный выпуск и дальше уже не смотрел.
Прости, друг. Идея отличная, но реализация — халтурная. Куча повторяющихся видео.
Если буду ролики добавлять один лишь я то вместо рандома получится лишь навязанное мнение одного человека =)
Просто там всего сотня видосиков пока что :/
а что мешает чтобы сайт сам выводил рандомное видео без добавления?
ну или расширение для хрома с рандомной кнопкой. нажал и вот тебе случайное видео.
на хХомяке.ком раньше была такая фича. нажал и вот тебе рандомная парнуса с сайта
У меня гребаный Ютуб меньше двух роликов подряд вообще не прокручивает, когда видит, что мы далеко от телека. Эта сука реально палит! Как-то я психанул и решил оформить подписку без рекламы. И что? Эта, мать ее, услуга не доступна в вашем регионе!
Но ведь видео хостится на ютубе. В итоге бремя модерации видео лежит на ютубчике. У нас всего лишь ссылки.
Ну сорян что не совсем понятно написал) А то о чем вы подумали это к примеру вот — https://mixtape.moe/
Спасибо, добрый человек! Расширишь горизонты
Мнение Владимира Епифанцева о нашем сайте
Конечно в некоторых моментах можно поспорить, но в чем то он прав. От того и грустно..
С монтированием видоса со сториз что то накосячил с очередностью ролика, так как колхозник ))
Про Глухаря вообще молчу
Министр социального развития, успокойтесь
Думаю многие сталкивались
Из-за РПЛ мы теряем великих футболистов
У бэдкомедиана задергался глаз
Ответ на пост «Статистика»
Тут многие люди пишут, что заболевших на самом деле намного больше, чем пишут в статистике.
Подержите мое пиво.
За последний год ко мне в поликлинику на рентген приходит очень много людей с вирусной пневмонией и я, прям, почти на сто процентов вижу, что это ковид (есть у нее определенные особенности даже на рентгене). Бывает, что в день до 20-30 таких.
За работу с ковидом мне по закону полагается доплата, поэтому всегда за ними потом очень тщательно слежу.
Так вот, человек с пневмонией приходит на рентген, сдает ПЦР — положительный, ему даже корректный код мкб ставят U07.1 и U07.2. Эти данные потом отправляют в роспотребнадзор.
Но! Роспотребнадзор большинство этих людей в федеральный регистр не вносит! Почему? Этого никто не может уже год понять. Из сотни людей я примерно 1-2 потом в официальных списках нахожу (и, соответственно, за всех остальных никаких выплат мне не идёт).
Это просто абсурд какой-то, Кафка и Хармс вместе взятые. Казалось бы, ну вот человек с вирусной пневмонией, вот пцр, вот диагноз, не может же он никуда пропасть, он должен в списках быть. Ага, щас.
Ну вы поняли.
Пикабушники: «Мы — пикабушники! Интересные люди с собственным мнением, пилящие крутые посты с увлекательными историями! МЫ — СИЛА!»
Епифанцев: «Да вы же секта и стадо»
Пикабушники: «Ну так-то да, правильно всё сказал, в принципе, мы секта и стадо»
Марсианские хроники
Ответ на пост «Гнилые люди в ДПС»
Только купил машину, проездил неделю. Останавливают меня сотрудники ДПС. А я за рулём вот столько, сколько машиной владею. Разнервничался-разволновался. Даю документы, а у самого руки трясутся.
Полицейский это замечает, и сразу начинает «Как себя чувствуем? Не употребляли? А чего руки трясутся?»
Ну я без лишних раздумий выкладываю: «Просто меня никто еще не останавливал»
Ониокликивает своего напарника «Серёг, прикинь я у него первый!» ржут оба, желает счастливого пути и отпускает.
Какой разврат!! Обязательно надо поехать ещё раз
Факт от @Keyten
Вызываю к Великой Силе Пикабу
Город Выкса. Предположительно около Детского мира, примерно 17:45.
Прекрасные незнакомые друзья
Надо было для одной тусовки закупиться большим количеством питьевой продукции.
Нашёл один оптовый склад в инете звоню:
Я: Добрый день, мне нужно купить у вас 10 ящиков того, 15 ящиков этого и т.д.
Человек: Добрый только я сейчас дома, позвоните по другому номеру *диктует номер*.
*звоню*
Я: Добрый день, мне ваш номер дала Татьяна надо.
Человек2: Ой братишка мне сейчас хуйово, позвони по этому номеру *диктует номер* скажи от Сергея Павловича
*звоню*
Я: Добрый день я от Сергея Павловича и Татьяны и т.д. по тексту.
Человек3: На когда надо?
Я: Послезавтра
Ч3: Завтра сможете забрать?
Я: Врядли, а можно послезавтра утром или сделать доставку?
Ч3: Ну мы вообще-то послезавтра не работаем и доставку не делаем, но я могу приехать для отгрузки.
Я: Спасибо, какая сумма?
Ч3: 36тысяч грн, но у нас цены опт от 50
Я: Да но Сергей Павлович.
Ч3: Ладно ок приезжайте отгрузим
*приезжаю*
**загружаемся и считаемся**
Ч3: С вас 29тысяч грн
Я: Так вы же говорили 36!?
Ч3: Ну вы же от Сергея Павловича
Я: А ну ок, спасибо.
***получаю накладную, товар и уезжаю***
Источник
Random tube не работает
App to randomly generate tube station and then bars nearby
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
This project was bootstrapped with Create React Native App.
Below you’ll find information about performing common tasks. The most recent version of this guide is available here.
Table of Contents
Updating to New Releases
You should only need to update the global installation of create-react-native-app very rarely, ideally never.
Updating the react-native-scripts dependency of your app should be as simple as bumping the version number in package.json and reinstalling your project’s dependencies.
Upgrading to a new version of React Native requires updating the react-native , react , and expo package versions, and setting the correct sdkVersion in app.json . See the versioning guide for up-to-date information about package version compatibility.
If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.
Runs your app in development mode.
Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
Sometimes you may need to reset or clear the React Native packager’s cache. To do so, you can pass the —reset-cache flag to the start script:
Runs the jest test runner on your tests.
Like npm start , but also attempts to open your app in the iOS Simulator if you’re on a Mac and have it installed.
npm run android
Like npm start , but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you’ve finished setting up the native build environment, there are two options for making the right copy of adb available to Create React Native App:
Using Android Studio’s adb
- Make sure that you can run adb from your terminal.
- Open Genymotion and navigate to Settings -> ADB . Select “Use custom Android SDK tools” and update with your Android SDK directory.
Using Genymotion’s adb
- Find Genymotion’s copy of adb. On macOS for example, this is normally /Applications/Genymotion.app/Contents/MacOS/tools/ .
- Add the Genymotion tools directory to your path (instructions for Mac, Linux, and Windows).
- Make sure that you can run adb from your terminal.
This will start the process of «ejecting» from Create React Native App’s build scripts. You’ll be asked a couple of questions about how you’d like to build your project.
Warning: Running eject is a permanent action (aside from whatever version control system you use). An ejected app will require you to have an Xcode and/or Android Studio environment set up.
Customizing App Display Name and Icon
You can edit app.json to include configuration keys under the expo key.
To change your app’s display name, set the expo.name key in app.json to an appropriate string.
To set an app icon, set the expo.icon key in app.json to be either a local path or a URL. It’s recommended that you use a 512×512 png file with transparency.
Writing and Running Tests
This project is set up to use jest for tests. You can configure whatever testing strategy you like, but jest works out of the box. Create test files in directories called __tests__ or with the .test extension to have the files loaded by jest. See the the template project for an example test. The jest documentation is also a wonderful resource, as is the React Native testing tutorial.
You can configure some of Create React Native App’s behavior using environment variables.
Configuring Packager IP Address
When starting your project, you’ll see something like this for your project URL:
The «manifest» at that URL tells the Expo app how to retrieve and load your app’s JavaScript bundle, so even if you load it in the app via a URL like exp://localhost:19000 , the Expo client app will still try to retrieve your app at the IP address that the start script provides.
In some cases, this is less than ideal. This might be the case if you need to run your project inside of a virtual machine and you have to access the packager via a different IP address than the one which prints by default. In order to override the IP address or hostname that is detected by Create React Native App, you can specify your own hostname via the REACT_NATIVE_PACKAGER_HOSTNAME environment variable:
The above example would cause the development server to listen on exp://my-custom-ip-address-or-hostname:19000 .
Sharing and Deployment
Create React Native App does a lot of work to make app setup and development simple and straightforward, but it’s very difficult to do the same for deploying to Apple’s App Store or Google’s Play Store without relying on a hosted service.
Publishing to Expo’s React Native Community
Expo provides free hosting for the JS-only apps created by CRNA, allowing you to share your app through the Expo client app. This requires registration for an Expo account.
Install the exp command-line tool, and run the publish command:
Building an Expo «standalone» app
You can also use a service like Expo’s standalone builds if you want to get an IPA/APK for distribution without having to build the native code yourself.
Ejecting from Create React Native App
If you want to build and deploy your app yourself, you’ll need to eject from CRNA and use Xcode and Android Studio.
This is usually as simple as running npm run eject in your project, which will walk you through the process. Make sure to install react-native-cli and follow the native code getting started guide for React Native.
Should I Use ExpoKit?
If you have made use of Expo APIs while working on your project, then those API calls will stop working if you eject to a regular React Native project. If you want to continue using those APIs, you can eject to «React Native + ExpoKit» which will still allow you to build your own native code and continue using the Expo APIs. See the ejecting guide for more details about this option.
If you’re unable to load your app on your phone due to a network timeout or a refused connection, a good first step is to verify that your phone and computer are on the same network and that they can reach each other. Create React Native App needs access to ports 19000 and 19001 so ensure that your network and firewall settings allow access from your device to your computer on both of these ports.
Try opening a web browser on your phone and opening the URL that the packager script prints, replacing exp:// with http:// . So, for example, if underneath the QR code in your terminal you see:
Try opening Safari or Chrome on your phone and loading
If this works, but you’re still unable to load your app by scanning the QR code, please open an issue on the Create React Native App repository with details about these steps and any other error messages you may have received.
If you’re not able to load the http URL in your phone’s web browser, try using the tethering/mobile hotspot feature on your phone (beware of data usage, though), connecting your computer to that WiFi network, and restarting the packager. If you are using a VPN you may need to disable it.
iOS Simulator won’t open
If you’re on a Mac, there are a few errors that users sometimes see when attempting to npm run ios :
- «non-zero exit code: 107»
- «You may need to install Xcode» but it is already installed
- and others
There are a few steps you may want to take to troubleshoot these kinds of errors:
- Make sure Xcode is installed and open it to accept the license agreement if it prompts you. You can install it from the Mac App Store.
- Open Xcode’s Preferences, the Locations tab, and make sure that the Command Line Tools menu option is set to something. Sometimes when the CLI tools are first installed by Homebrew this option is left blank, which can prevent Apple utilities from finding the simulator. Make sure to re-run npm/yarn run ios after doing so.
- If that doesn’t work, open the Simulator, and under the app menu select Reset Contents and Settings. . After that has finished, quit the Simulator, and re-run npm/yarn run ios .
QR Code does not scan
If you’re not able to scan the QR code, make sure your phone’s camera is focusing correctly, and also make sure that the contrast on the two colors in your terminal is high enough. For example, WebStorm’s default themes may not have enough contrast for terminal QR codes to be scannable with the system barcode scanners that the Expo app uses.
If this causes problems for you, you may want to try changing your terminal’s color theme to have more contrast, or running Create React Native App from a different terminal. You can also manually enter the URL printed by the packager script in the Expo app’s search bar to load it manually.
About
App to randomly generate tube station and then bars nearby
Источник