Skip to content

Instantly share code, notes, and snippets.

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

Pishang Ujeniya pishangujeniya

🏠
Working from home
View GitHub Profile
@adhipg
adhipg / countries.sql
Created January 12, 2012 11:41
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@roachhd
roachhd / README.md
Last active July 4, 2024 03:12
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@wassname
wassname / keras_weighted_categorical_crossentropy.py
Last active December 19, 2023 18:17
Keras weighted categorical_crossentropy (please read comments for updated version)
"""
A weighted version of categorical_crossentropy for keras (2.0.6). This lets you apply a weight to unbalanced classes.
@url: https://gist.github.com/wassname/ce364fddfc8a025bfab4348cf5de852d
@author: wassname
"""
from keras import backend as K
def weighted_categorical_crossentropy(weights):
"""
A weighted version of keras.objectives.categorical_crossentropy
@jeremyjordan
jeremyjordan / lr_finder.py
Last active March 3, 2022 08:46
Keras Callback for finding the optimal range of learning rates
import matplotlib.pyplot as plt
import keras.backend as K
from keras.callbacks import Callback
class LRFinder(Callback):
'''
A simple callback for finding the optimal learning rate range for your model + dataset.
@dgrahn
dgrahn / keras_metrics.py
Created October 25, 2018 11:24
Metrics removed from Keras in 2.0.
"""Keras 1.0 metrics.
This file contains the precision, recall, and f1_score metrics which were
removed from Keras by commit: a56b1a55182acf061b1eb2e2c86b48193a0e88f7
"""
from keras import backend as K
def precision(y_true, y_pred):
"""Precision metric.
@pishangujeniya
pishangujeniya / MySQL-8-Visual-Studio-2017-EntityFramework-Guide.md
Last active May 29, 2022 07:12
MySQL Server 8.0 with Visual Studio 2017 and EntityFramework Install Guide

Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2017

  • Install MySQL Server 8.0
  • Install Complete MySQL Connector.Net x86 8.0.16
  • Install Complete MySQL Visual Studio Plugin 1.2.8
  • If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd devenv /updateconfiguration, then manually execute that command in Developer Command Prompt for Visual Studio 20xx with run as administrator.
  • Run this command Install-Package EntityFramework -Version 6.4.0 in Visual Studio Nuget package manager console
  • Run this command Install-Package MySql.Data -Version 8.0.16 in Visual Studio Nuget package manager console
  • Run this command Install-Package MySql.Data.EntityFramework -Version 8.0.16 in Visual Studio Nuget package manager console
@pishangujeniya
pishangujeniya / Visual-Studio-Code-Extensions.md
Last active December 2, 2022 14:49
Visual Studio Code Recommended Extensions List, Top must to have extensions for Visual Studio Code

Visual Studio Code Must have Extensions

Hello World! Every programmer loves IDE and auto-complete inetllisense facilities in IDE's and editor tools. Since when Visual Studio Code came into market, it has attracted a lot of popularity among every age group of coders. But, any of the program doesn't suit to everyone's need, and thier comes the existence of extensions. Here I am listing out some of the very usefull extensions, that every Visual Studio Code user must have.

Hit Star if you liked this.

Just search the title in extensions marketplace.

@pishangujeniya
pishangujeniya / Ubuntu-Mojave-Mac-OS-Theme.md
Last active February 3, 2023 02:24
Mac OS Mojave Theme for Ubuntu

Ubuntu To Mac OS Mojave theme

Mc OS Mojave Ubuntu Look alike


Pre-requisites

  • sudo apt update
  • sudo apt install gnome-tweaks
  • sudo apt-get install gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0