Skip to content

Instantly share code, notes, and snippets.

View pratikkabade's full-sized avatar
🌱
Harvesting thoughts..

Prãt!k Kàbádé pratikkabade

🌱
Harvesting thoughts..
View GitHub Profile
<html>
<head>
<style>
table,
th,
td {
margin: 10px 0;
border: solid 1px #333;
padding: 2px 4px;
// these are code snippets backup from vs code
@pratikkabade
pratikkabade / android_build.yml
Created January 28, 2023 04:32
Github Actions
name: Build
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
# Fix GitHub Actions crashing with:
# CRASH: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
@pratikkabade
pratikkabade / Program.cs
Created July 11, 2022 16:28
A part of C-Sharp tutorial.
var builder = WebApplication.CreateBuilder(args);
if (builder.Environment.IsDevelopment())
{
builder.Services.AddDbContext<MvcMovieContext>(options =>
options.UseSqlite(builder.Configuration.GetConnectionString("MvcMovieContext")));
}
else
{
builder.Services.AddDbContext<MvcMovieContext>(options =>
@pratikkabade
pratikkabade / People.cs
Last active July 11, 2022 16:27
A part of C-Sharp tutorial.
using System.ComponentModel.DataAnnotations;
namespace MvcMovie.Models
{
public class People
{
public int Id { get; set; }
public string? Title { get; set; }
[DataType(DataType.Date)]