Skip to content

Instantly share code, notes, and snippets.

View Zaky7's full-sized avatar

Zakir Zaky7

  • Shahdara, Delhi , India
View GitHub Profile
@Zaky7
Zaky7 / keybase.md
Last active December 31, 2023 09:39

Keybase proof

I hereby claim:

  • I am zaky7 on github.
  • I am zakirsaifi76 (https://keybase.io/zakirsaifi76) on keybase.
  • I have a public key ASDTyZfyPEd4iMsJXQ0mkdlv1_QzW5NKlEs125iutHKmOwo

To claim this, I am signing this object:

@Zaky7
Zaky7 / MinCharactersToSatistyCondition.java
Created January 26, 2021 03:23
1737. Change Minimum Characters to Satisfy One of Three Conditions
class Solution {
public int minCharacters(String a, String b) {
char[] char1 = a.toCharArray();
char[] char2 = b.toCharArray();
int Op1 = minOperation(char1, char2);
int Op2 = minOperation(char2, char1);
int Op3 = minOpForDifferByOne(char1, char2);
int minOp = Math.min(Op1, Op2);
@Zaky7
Zaky7 / leetcode-1674.java
Last active December 6, 2020 03:46 — forked from meretciel/leetcode-1674.cpp
leetcode-1674.java
class Solution {
static class Point {
private int coordinate;
private int typeId;
Point(int coordinate, int typeId) {
this.coordinate = coordinate;
this.typeId = typeId;
}
};
@Zaky7
Zaky7 / install-firacode.sh
Created August 15, 2019 12:47 — forked from nikhita/install-firacode.sh
How to install FiraCode font on Linux
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done
fc-cache -f
@Zaky7
Zaky7 / SQL_COOKBOOK_TABLE.sql
Created March 6, 2019 10:21 — forked from YujiShen/SQL_COOKBOOK_TABLE.sql
Table EMP and DEPT of SQL Cookbook for MySQL
-- Thanks to http://justinsomnia.org/2009/04/the-emp-and-dept-tables-for-mysql/
DROP TABLE IF EXISTS emp;
CREATE TABLE emp (
empno decimal(4,0) NOT NULL,
ename varchar(10) default NULL,
job varchar(9) default NULL,
mgr decimal(4,0) default NULL,
hiredate date default NULL,
import { Component, OnInit, EventEmitter, Output, ViewChild } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ContactService } from './contacts.service';
import { Contact } from './contact.model';
import { Subject } from 'rxjs';
import { ContactListComponent } from './contact-list/contact-list.component';
declare var gapi: any;
@Component({
selector: 'app-contacts',
@Zaky7
Zaky7 / StudentComponent.ts
Last active October 19, 2018 13:14
StudentComponent with Set Input hosted with ❤️ by Github
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-student',
template: `
<p> My name is {{ name }}.</p>
`
})
export class StudentComponent {
public name = '';
// Specify the Setter for the input property
@Zaky7
Zaky7 / MasterComponent.ts
Created October 19, 2018 12:58
MasterComponent Host with ❤️ on Github
import { Component, OnInit } from '@angular/core';
import { Student } from './student.model';
@Component({
selector: 'app-master',
template: `
<h2>{{master}} says give your introduction </h2>
<app-student *ngFor="let student of students"
[studentName]="student.name"
>
</app-student>
@Zaky7
Zaky7 / README.md
Created August 9, 2018 11:36 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@Zaky7
Zaky7 / httpd.conf
Created July 31, 2017 17:31 — forked from johnfoderaro/httpd.conf
Default httpd.conf file - macOS Sierra 10.12.2 - /etc/apache2/httpd.conf
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure