Skip to content

Instantly share code, notes, and snippets.

View vishalbandre's full-sized avatar
💭
I may be slow to respond.

Vishal Bandre vishalbandre

💭
I may be slow to respond.
View GitHub Profile
https://www.piskelapp.com/download
https://sourceforge.net/projects/mtpaint/
pikopixel - Install it using this command: sudo apt-get -y install pikopixel.app
http://pulkomandy.tk/projects/GrafX2/downloads?order=version&desc=1
slither.io
agar.io
diep.io
paper.io
mope.io
krunker.io
<iframe width="315" height="560" src="https://www.youtube.com/embed/2I6cyjKUd08" title="Embedded YouTube Shorts Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
Note:
Just replace this Embed code with your embed code
https://www.youtube.com/embed/[Embed_Code]
You need to make to updates in your code:
1) You need to add this dependency in project level build.gradle:
// Add this
buildscript {
dependencies {
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.6.0")
}
For slicing a video:
Syntax:
ffmpeg -i input_video.mp4 -ss START_TIME_IN_THE_FORMAT_00:00:00 -to END_TIME_IN_THE_FORMAT_00:00:00 -vf scale=1280:-1 -c:v libx264 -preset veryfast -crf 23 -c:a copy -f segment -segment_time 60 -reset_timestamps 1 output_%03d.mp4
Sample in action:
ffmpeg -i input_video.mp4 -ss 00:00:19 -to 00:00:39 -vf scale=1280:-1 -c:v libx264 -preset veryfast -crf 23 -c:a copy -f segment -segment_time 60 -reset_timestamps 1 output_%03d.mp4
https://quilljs.com/
https://github.com/ianstormtaylor/slate
https://github.com/prosemirror
https://trix-editor.org/ (https://github.com/basecamp/trix)
https://github.com/Ionaru/easy-markdown-editor
https://ui.toast.com/tui-editor
Quill Editor Implementation:
https://www.scalablepath.com/front-end/quill-js-wysiwyg-editor
https://codepen.io/kdsp/pen/XWXoMoK
# Download YouTube video as MP3
import subprocess
def download_youtube_video_as_mp3(url, output_file):
cmd = 'youtube-dl -x --audio-format mp3 ' + url + ' -o ' + output_file
subprocess.call(cmd, shell=True)
download_youtube_video_as_mp3('https://www.youtube.com/watch?v=srVPLrmlBJY', 'output.mp3')
# Download YouTube video
import subprocess
def download_youtube_video(url, output_file):
cmd = 'youtube-dl ' + url + ' -o ' + output_file
subprocess.call(cmd, shell=True)
download_youtube_video('https://www.youtube.com/watch?v=srVPLrmlBJY', 'output.mp4')
@vishalbandre
vishalbandre / RadioGridGroup.java
Last active October 9, 2022 04:09 — forked from saiaspire/RadioGridGroup.java
A Radio Group that has GridLayout as its parent. This allows for more complex layouts of RadioButton (use AppCompatRadioButton). For example, when you need multiple rows of Radio Buttons.
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.AppCompatRadioButton;
import android.support.v7.widget.GridLayout;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.CompoundButton;
<?php
use Drupal\Core\Entity\EntityInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Entity\ContentEntityType;
use Drupal\Core\Routing\RouteMatchInterface;
/**