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 / 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>
@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 / 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 / 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 / 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 / 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:
{"August 21, 2024":[{"nickname":"Deep","accepted_by":null,"call_duration":0,"duration":null,"allow_forwarding":1,"allow_sharing":1,"preview":"","caption":"","original_caption":"","reply_id":"","reply":"","owner_name":"","forwarded":0,"file_id":"","thumbnail":"","audio_text":"","original_audio_text":"","audio_url":"","original_audio_url":"","sender_name":"Deep","message":"meeting?","id":63182213,"chat_id":1436165,"sender_id":1845362,"receiver_id":32,"is_private":0,"owner_id":0,"story":null,"sender_deleted":0,"receiver_deleted":0,"receiver_blocked":0,"deleted":0,"type":"text","sequence":1,"file":null,"is_read":2,"group_id":"7fad668a-6b91-4639-b1e0-b0af5f40e253","language":"et","parent_id":null,"is_group":false,"seen_by":"1845362,","delivered_to":"","created_at":"2024-08-21T07:00:52.361Z","forwarded_at":null,"edited":0,"updated_at":"2024-08-21T07:00:52.361Z","deleted_by":null,"tag_id":"7fad668a-6b91-4639-b1e0-b0af5f40e253","file_type":null,"file_size":null,"unix_time":1724223652,"original_message":"meeting?","gr
// Override key bindings by placing them into your key bindings file.
[
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
"when": "inZenMode" },
{ "key": "shift+escape", "command": "closeReferenceSearch",
"when": "inReferenceSearchEditor && !config.editor.stablePeek" },
{ "key": "escape", "command": "closeReferenceSearch",
"when": "inReferenceSearchEditor && !config.editor.stablePeek" },
{ "key": "escape", "command": "editor.closeTestPeek",
"when": "testing.isInPeek && !config.editor.stablePeek || testing.isPeekVisible && !config.editor.stablePeek" },