A Pen by MohammadAli Mirhamed Rooy on CodePen.
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
import CredentialsProvider from "next-auth/providers/credentials"; | |
import { NuxtAuthHandler } from "#auth"; | |
export default NuxtAuthHandler({ | |
secret: useRuntimeConfig().authSecret, | |
providers: [ | |
CredentialsProvider.default({ | |
name: "Credentials", | |
async authorize(credentials: any) { |
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
<?php | |
#API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = $_GET['id']; | |
$topic = $_GET['topic']; | |
#prep the bundle | |
$msg = array | |
( | |
'body' => 'Body Of Notification', |
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
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
<select id="country" name="country" class="form-control"> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Åland Islands">Åland Islands</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> |
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
words="#$!F4@#$hF6!a@#D$5p4()*Dp$565Dy-^*n&DeA(*w)-S8y9*e()DFa)(r8-EF@()28#0$3147" | |
index=0;message="" | |
while index<len(words): | |
if words[index] in "<-abcdefghijklmnpqrstuvwxyz2017->": | |
message+=words[index] | |
index+=1 | |
print(message) |
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
print "mohammadali".isdigit() | |
print "123456".isdigit() | |
print "ABCD".isupper() | |
print "abcd".islower() | |
print "".isalnum() |
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
''' | |
Q1= yek adad begire va az 0 ta on adad , adade zoje beyensh ro be sourt list neshon bede | |
Q2=listy ke az tamrin bala besd omadeh ro mojmooesh ro chup kone | |
Q3=added bedast amadeh az tamrin bala tadad arghamsh ra chup konid | |
khoroje Q1 ba farze vorody 10 | |
A1=[0,2,4,6,8] | |
A2=20 | |
A3=2 | |
''' |
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
class average: | |
def total_marks(self): | |
self.total_marks_num = input("Enter Total Of Marks : ") | |
print "=========================================\n" | |
#------------------------------------------------------------------- | |
def set_list_of_marks(self): | |
mark=0;self.marksList=[];counter=0 | |
while counter<self.total_marks_num: | |
mark=input("Enter Mark #"+str(counter+1)+": ") | |
self.marksList.append(float(mark)) |
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
<?php | |
#API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = $_GET['id']; | |
#prep the bundle | |
$msg = array | |
( | |
'body' => 'Body Of Notification', |