Some part of this codes contains codesnippet/algorithm from HackerEarth Editorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You may use special comments to disable some warnings. | |
Use // eslint-disable-next-line to ignore the next line. | |
Use /* eslint-disable */ to ignore all warnings in a file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment Variables | |
In a fresh Laravel installation, the root directory of your application will contain a .env.example file. Rename the file .env.example to .env | |
- Environment Variable Types | |
.env Value env() Value | |
true (bool) true | |
(true) (bool) true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#models.py | |
from django.db.models.signals import post_save, post_delete | |
from django.contrib.auth.models import User | |
class UserProfile(models.Model): | |
user = models.OneToOneField(User, on_delete=models.CASCADE) | |
phone = models.CharField(max_length=13) | |
gender = models.CharField(choices=GENDER, max_length=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#views.py | |
stats = '-' | |
if request.method == 'POST': | |
form = GoatInfoForm(request.POST) #{} | |
if form.is_valid(): | |
cd = form.cleaned_data #outpur: dictionary | |
form_clean = GoatInfoForm(cd) | |
#cd.save() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IPv4 Address | |
^(0?[0-9]|1[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.(0?[0-9]|1[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.(0?[0-9]|1[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.(0?[0-9]|1[0-9]{1,2}|25[0-5]|2[0-4][0-9])$ | |
Person Name | |
^([a-zA-Z]{2,}\s*){1,}$ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Default: Python-Telegram-Bot | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
from telegram import ReplyKeyboardMarkup | |
import telegram | |
#Tables | |
import pandas as pd | |
#Database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install https://git-scm.com/download/win | |
2. Edit Config: | |
git config --global user.name "Your name" | |
git config --global user.email <someone@example.com> | |
Open Github.com > Settings > SSH and GPG Keys > New SSH Key | |
then paste the content of ~/.ssh/id_rsa.pub | |
3. Setting Up a new Git Repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before you proceed these are the tools needed for investment sites below: | |
http://bit.ly/getPayeer | |
http://bit.ly/getAdvCash | |
http://bit.ly/get50PHP | |
GET FREE BITCOIN CASH HERE cnhv.co/8pwim |
Practice Problem solutions by Wolf Syntax (Jayson Alpe) Hackerearth.com : https://www.hackerearth.com/@jalpe Hackerrank.com : https://www.hackerrank.com/wolfSyntax Codechef : https://www.codechef.com/users/wolfsyntax_
NewerOlder