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
$(document).ready((e) => { | |
$('#footer').text('Hello world'); | |
}); |
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
// Set the date we're counting down to | |
var obj = document.getElementById("tbe-countdown"); | |
var date = obj.getAttribute("data-date"); | |
if (!date || date == "") { | |
console.error("Date should be of formate: Mon d, YYYY HH:mm:ss"); | |
} | |
var countDownDate = new Date(date).getTime(); |
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
{ | |
"serviceList": [ | |
{ | |
"technician": { | |
"firstName": "sadfasf", | |
"id": 33, | |
"lastName": "asfasf", | |
"nickName": "hgjhj", | |
"phoneNo": "0235253465", | |
"photo": "\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABgCAYAAADVenpJAAAEfklEQVR4Xu2dwWsTQRjFv4m1LepZ8OZJURGUekmCgnjyUFBkSwVR10L/AVEUvSpWwXsPNongod2q4KknQSQbFdGLqOjBm+hJEKogTUZSUGpam2z2zexM8nrNzPu+fe+Xb5JmSVQhKGnhX986oAhA32a/fOEEoL/zJwAG828erW+1lqe5nPqQE/1pSfTPtPWUVgtpNVbu5wRAuinqZX1w4Mjze6e+Q2VXiKGPbAIASKohjfBZNFEGSLWVIABtLbK5QF2No7PXbFYkADbd/k8tLbJYi8ItWbRCALJw/d+as3EUjmfVBgHIyvnlN825S/HcmaksWyAAGbmvlFypzoXXMyr/tywByCABLfKgFoUnMii9qiQBsJ/CjzgKN9svu3ZFAmA5iTgKleWS65YjABbT0CK3alF40WLJtqUIQFuLcAtce/Y3r4wA4PJdV0mLXK5F4Q1L5TouQwA6tirdQhef/ZwA6TJNsvtjHIU7kmywtZYTwIbTuQ1749nTb2yUSlqDACR1rIv1ro5/HgFdhNnNFhsAHAxmdjeU2i4NGU7So1ZyP8n6dmt5Q0iLQ0rkSzUKt7UzrrvHtSoElRci+kB3+/G7CMBqABaqUXgUbfXI6PSmoeHBRbRuWj0C0Oqglpl4PpxIa2zrfvSLN1R/BKB1Ahj42DcflB4pkVFUaEgdArDazfNxFN5Gmuzqs795jQTAMACunv1/LpsAGAageLK8Ry9pJ/+pxAmw9pyHHgH |
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
{ | |
"serviceList": [ | |
{ | |
"technician": { | |
"firstName": "Anuj", | |
"id": 23, | |
"lastName": "Sharma", | |
"nickName": "sdsd", | |
"salonsId": 1, | |
"usersId": 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
{ | |
"serviceList": [ | |
{ | |
"technicianId": 23, | |
"serviceId": 11 | |
}, | |
{ | |
"technicianId": 23, | |
"serviceId": 9 | |
} |
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
servicesDummy = [ | |
{ | |
id: 1, | |
serviceName: 'menicure', | |
subservices: [ | |
{ id: 1, subserviceName: 'deluxe menicure', price: 45 }, | |
{ id: 2, subserviceName: 'jelly menicure', price: 55 }, | |
{ id: 3, subserviceName: 'classic menicure', price: 85 }, | |
] | |
}, |
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
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative master..development |
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 ContactSerializer(serializers.HyperlinkedModelSerializer): | |
phone_numbers = ContactPhoneNumberSerializer( | |
source='contactphonenumber_set', | |
many=True, | |
required=False | |
) | |
emails = ContactEmailSerializer( | |
source='contactemail_set', | |
many=True, | |
required=False |
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 ContactViewSet(viewsets.ModelViewSet): | |
""" | |
This viewset automatically provides `list`, `create`, `retrieve`, | |
`update` and `destroy` actions. | |
Additionally we also provide an extra `favourite`action | |
""" | |
serializer_class = ContactSerializer | |
permission_classes = (IsAuthenticated, AdminAuthenticationPermission,) |
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
""" | |
Given two strings, a and b, that may or may not be of same length, | |
determine the minimum number of character deletions required to make a and b anagrams. | |
Any characters can be deleted from either of the strings | |
NOTE: Anagram of a word is formed by arranging the letters of the word. | |
For eg. -> for the word RAM: RAM, AMR, MAR, etc are the anagrams | |
""" | |
attempts = int(input()) |
NewerOlder