Skip to content

Instantly share code, notes, and snippets.

View smartclash's full-sized avatar
🔥
Literally on fire

Karan Sanjeev smartclash

🔥
Literally on fire
View GitHub Profile

Keybase proof

I hereby claim:

  • I am smartclash on github.
  • I am inscrompt (https://keybase.io/inscrompt) on keybase.
  • I have a public key ASAJ9vxI61yzRz6mCEZ24S2-Lc823OraS2neXYCEGncZ8go

To claim this, I am signing this object:

@smartclash
smartclash / dial-mysql-via-ssh.go
Created July 16, 2020 08:53 — forked from vinzenz/dial-mysql-via-ssh.go
Using MySQL / MariaDB via SSH in Golang
package main
import (
"database/sql"
"fmt"
"net"
"os"
"github.com/go-sql-driver/mysql"
"golang.org/x/crypto/ssh"
@smartclash
smartclash / settings.json
Last active June 13, 2020 15:37
Updated VSCode Config File. Install Fira Code for awesome style.
{
"editor.fontFamily": "'Jetbrains Mono', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.lineHeight": 35,
"editor.minimap.enabled": false,
"terminal.integrated.fontSize": 15,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.lineHeight": 1.3,
"workbench.startupEditor": "welcomePage",
@smartclash
smartclash / main.c
Last active January 27, 2020 09:56
Multiply, Subtract and Add matrix in a single program using C
#include <stdio.h>
int a[2][2] = {{0, 0}, {0, 0}}, b[2][2] = {{0, 0}, {0, 0}}, input;
int res[2][2] = {{0, 0}, {0, 0}}, i, j, k;
void printResult() {
printf("\nThe result is\n");
for (i = 0; i < 2; i++) {
@smartclash
smartclash / programs.py
Last active December 18, 2019 17:18
All your python programs, made as easy as possible. Thank me later.
# Compute the GCD of two numbers
def the_hcf(x, y):
while(y):
x, y = y, x % y
return x
hcf = the_hcf(300, 400)
print("The HCF is", hcf)
# ------------------------------------
@smartclash
smartclash / hyper.js
Created May 13, 2019 21:13
Hyper terminal configuration for sick feel and look
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
materialBox: {
scheme: 'material-darker',
autoHideTitle: true,
},
@smartclash
smartclash / base.css
Last active July 31, 2018 16:45
Some Shits
/* ===================================================================
*
* Dazzle v1.0 Base Stylesheet
* 04-27-2017
* ------------------------------------------------------------------
*
* TOC:
* 01. reset
* 02. basic/base setup styles
* 03. grid
{
"explorer.openEditors.visible": 0,
"workbench.activityBar.visible": false,
"workbench.statusBar.visible": false,
"editor.lineHeight": 35,
"editor.fontSize": 18,
"editor.minimap.enabled": false,
"window.menuBarVisibility": "toggle",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.fontLigatures": true,
@smartclash
smartclash / HelloWorld.java
Created February 24, 2018 09:37
A simple hello world in java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
@smartclash
smartclash / cleanCode.php
Created January 6, 2017 10:30
An awesome clean code, as an example to others
<?php
class Database extends CI_Model
{
public function run()
{
$this->load->dbforge();
$db = $this->dbforge;
/*