Skip to content

Instantly share code, notes, and snippets.

@wolfsyntax
wolfsyntax / ES-6.info
Last active July 17, 2020 09:21
Laravel+VueJS
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.
@wolfsyntax
wolfsyntax / Configuration
Created December 20, 2019 10:52
Laravel Cheatsheet
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
@wolfsyntax
wolfsyntax / signals.txt
Created October 9, 2019 06:02
django-snippets
#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)
@wolfsyntax
wolfsyntax / 01.txt
Last active June 26, 2019 05:33
Django Framework
#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()
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,}$
@wolfsyntax
wolfsyntax / python_telegram_bot.txt
Last active November 13, 2018 17:30
Exploring Languages
#Default: Python-Telegram-Bot
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from telegram import ReplyKeyboardMarkup
import telegram
#Tables
import pandas as pd
#Database
@wolfsyntax
wolfsyntax / git_guide.txt
Last active November 13, 2018 16:58
Senior Project
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
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
@wolfsyntax
wolfsyntax / _README.md
Created January 26, 2018 04:32
HackerEarth Solution+ Editorial Snippet

Some part of this codes contains codesnippet/algorithm from HackerEarth Editorial

@wolfsyntax
wolfsyntax / _README.md
Last active August 14, 2023 02:55
HackerEarth Solution