Skip to content

Instantly share code, notes, and snippets.

View DK013's full-sized avatar
💭
Eat Lightning and Poop Thunder !

Deep Chakraborty DK013

💭
Eat Lightning and Poop Thunder !
View GitHub Profile
@DK013
DK013 / ObjectDictionary.cs
Created January 24, 2023 07:35 — forked from efranford/ObjectDictionary.cs
Unity3D: Class that behaves like a Dictionary<K, V>, but can still be serialized and edited by the Unity Editor.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
@DK013
DK013 / apple-touch-startup-image.html
Created August 31, 2022 06:12 — forked from EvanBacon/apple-touch-startup-image.html
An example of full iOS PWA startup image (splash screen) support.
<html>
<head>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="apple-mobile-web-app-title" content="Expo" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link
rel="apple-touch-icon"
sizes="180x180"
@DK013
DK013 / rethinkdb-getall.md
Created March 2, 2022 07:29 — forked from coffeemug/rethinkdb-getall.md
Using the `getAll` command to query multiple keys in RethinkDB 1.7.

Querying by multiple keys

The previous releases of RethinkDB allowed querying indexes as follows:

// Three ways to get the user with primary key 5
r.table('users').get(5)
r.table('users').getAll(5)
r.table('users').getAll(5, {index: 'id'})
@DK013
DK013 / style.css
Created February 26, 2020 07:12
html5 style bootstrapper
html, body {
height: 100%;
width: 100%;
}
* {
transition: all 0.2s easy-in-out;
}
.flex {
display: flex;
flex-direction: column;
@DK013
DK013 / install.sh
Created October 21, 2018 12:03
Installs LAMP with PHP 5.6 on Ubuntu 16.04
#!/bin/bash
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y apache2
sudo ufw allow in "Apache Full"
sudo apt-get install -y mysql-server
# After running this command, select (Y), option 2, then (Y) for the rest of the prompts.
sudo mysql_secure_installation
@DK013
DK013 / init-html5.html
Last active June 16, 2022 03:57 — forked from shabith/init-html5.html
HTML5: Starting Template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{name}}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
{{material-icons}}
</head>