Skip to content

Instantly share code, notes, and snippets.

View thedevankit's full-sized avatar
🏠
Working from home

Ankitkumar Singh thedevankit

🏠
Working from home
View GitHub Profile
@thedevankit
thedevankit / app.component.ts
Created April 25, 2020 06:32
startupname generator
import { Component, HostListener } from '@angular/core';
import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms';
declare function StartupNameGenerator(name): any;
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
@thedevankit
thedevankit / app.component.scss
Created April 25, 2020 06:17
StartupNameGenerator
#header {
position: relative;
padding: 5px;
height:30vh;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
@thedevankit
thedevankit / app.component.html
Created April 25, 2020 06:12
StartupNameGenerator
<div id="header">
<div class="item"></div>
<h1>The Startup Name Generator</h1>
<div class="item logo">
<img class="logo-img" src="assets/img/mahawiki.png" alt="">
</div>
</div>
<div class="container">
<div class="row my-5">
<div class="col-md-12">
const appRoutes: Routes = [
{
path: 'home',
component: HomeComponent,
data: { title: 'Home ' }
},
{
path: 'contact',
component: ContactComponent,
data: { title: 'Home ' }
@thedevankit
thedevankit / program4.py
Created May 1, 2019 17:05
Activation function :RELU
model = Sequential([
 Dense(5, input_shape=(3,), activation='relu'),
 Dense(2, activation='relu'),
 ])
@thedevankit
thedevankit / program3.py
Created May 1, 2019 17:03
Sigmoid function
model = Sequential([
 Dense(5, input_shape=(3,), activation='relu'),
 Dense(2, activation='sigmoid'),
 ])
@thedevankit
thedevankit / first.py
Created May 1, 2019 16:38
Neural netwrok.
from keras.models import Sequential
 from keras.layers import Dense, Activation
model = Sequential([
 Dense(32, input_shape=(10,), activation='relu'),
 Dense(2, activation='softmax'),
 ])
@thedevankit
thedevankit / firebase-receiver.html
Created January 31, 2018 03:16 — forked from jeromeetienne/firebase-receiver.html
firebase - example - one webpage sending data to another
<script src="https://www.gstatic.com/firebasejs/4.1.3/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
// YOUR CONFIG goes here - https://firebase.google.com/docs/web/setup#add_firebase_to_your_app
};
var firebaseApp = firebase.initializeApp(config);
var rootRef = firebase.database().ref();
// Get a reference to the /users/ada node
var adaRef = firebase.database().ref("users/ada");
@thedevankit
thedevankit / pdf-thumbnail-php.md
Created September 25, 2017 11:49 — forked from umidjons/pdf-thumbnail-php.md
Creating PDF thumbnails in PHP

Creating PDF thumbnails in PHP

Install Ghostscript

Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit).

Enable ImageMagick

@thedevankit
thedevankit / admin.perl
Created May 30, 2017 06:48 — forked from kenkit/admin.perl
admin finder perl
#!/usr/bin/perl
#*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
#
# ////////////////////////////////////
# dOcToR N!nja
# ////////////////////////////////////
#
# Title : PHPmyadmin Finder
# Category : Remote