Skip to content

Instantly share code, notes, and snippets.

Avatar
🔬
Gedankenerfahrung

Aranganathan Rathinavelu arangates

🔬
Gedankenerfahrung
View GitHub Profile
@arangates
arangates / index.html
Created Feb 16, 2021
Skateboard Video Platform
View index.html
<div class="container">
<div class="sidebar">
<span class="logo">S</span>
<a class="logo-expand" href="#">skateboard</a>
<div class="side-wrapper">
<div class="side-title">MENU</div>
<div class="side-menu">
<a class="sidebar-link discover is-active" href="#">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M9.135 20.773v-3.057c0-.78.637-1.414 1.423-1.414h2.875c.377 0 .74.15 1.006.414.267.265.417.625.417 1v3.057c-.002.325.126.637.356.867.23.23.544.36.87.36h1.962a3.46 3.46 0 002.443-1 3.41 3.41 0 001.013-2.422V9.867c0-.735-.328-1.431-.895-1.902l-6.671-5.29a3.097 3.097 0 00-3.949.072L3.467 7.965A2.474 2.474 0 002.5 9.867v8.702C2.5 20.464 4.047 22 5.956 22h1.916c.68 0 1.231-.544 1.236-1.218l.027-.009z" />
@arangates
arangates / Linux.txt
Created Dec 10, 2019
list of useful commands
View Linux.txt
# change default terminal
sudo update-alternatives --config x-terminal-emulator
# list shells
cat /etc/shells
# change default shell
chsh -s $(which shellname)
View keys.py
# <------------------------NORMAL FUNCTION -------------------------------->
# # Build and return a list
# def getKeys(data):
# return list(data.keys())
# obj = { 'bar': "hello", 'baz': "world" }
# keys_list = getKeys(obj)
# <------------------------BEHIND THE SCENE ------------------------------->
@arangates
arangates / Music-classification-into-genres.py
Created Jun 23, 2019 — forked from sdoshi579/Music-classification-into-genres.py
Model generated to classify extracted features from music clips into different genres
View Music-classification-into-genres.py
import librosa
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import os
import csv
# Preprocessing
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder, StandardScaler
@arangates
arangates / AesJava.java
Created Dec 19, 2018
AES encryption + decryption
View AesJava.java
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import javax.crypto.spec.IvParameterSpec;
@arangates
arangates / Autosize.ts
Created Oct 19, 2018
Angular autoresize textarea directive
View Autosize.ts
import {
Directive,
ElementRef,
Input,
AfterViewInit,
DoCheck,
OnDestroy,
NgZone,
} from '@angular/core';
import {Platform} from '@angular/cdk/platform';
View gita_chapters.json
{
"1": "Chapter 1",
"2": "Chapter 2",
"3": "Chapter 3",
"4": "Chapter 4",
"5": "Chapter 5",
"6": "Chapter 6",
"7": "Chapter 7",
"8": "Chapter 8",
"9": "Chapter 9",
@arangates
arangates / gita.json
Created Aug 20, 2018
Bagawad gita json
View gita.json
[
{
"id": 0,
"title": 1.1,
"devanagari": "धृतराष्ट्र उवाच ।\nधर्मक्षेत्रे कुरुक्षेत्रे समवेता युयुत्सवः\nमामकाः पाण्डवाश्चैव किमकुर्वत सञ्जय ॥ १.१ ॥",
"verse_text": "dhṛtarāṣṭra uvāca\ndharma-kṣetre kuru-kṣetre\nsamavetā yuyutsavaḥ\nmāmakāḥ pāṇḍavāś caiva\nkim akurvata sañjaya",
"verse_text_no_samdhis": "dhṛtarāṣṭraḥ uvāca dharma kṣetre kuru kṣetre samavetāḥ yuyutsavaḥ māmakāḥ pāṇḍavāḥ ca eva kim akurvata sañjaya"
},
{
"id": 1,
@arangates
arangates / seo.service.ts
Created Mar 29, 2018 — forked from nhathiwala/seo.service.ts
SEO Service for Angular 4+
View seo.service.ts
import { Injectable } from '@angular/core';
import { Meta, Title } from '@angular/platform-browser';
export interface TypingSEO {
title?: string;
titleSuffix?: string;
description?: string;
image?: string;
keywords?: string;
url?: string;
@arangates
arangates / meta-tags.md
Created Mar 29, 2018 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">