To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
[ | |
{ | |
"video_url": "https://cdn.pixabay.com/video/2024/03/12/203923-922675870_large.mp4", | |
"thumbnail_url": "", | |
"tags": "grass, field, wind, flowers, nature", | |
"duration": 21, | |
"user": "RuslanSikunov", | |
"userImageURL": "https://cdn.pixabay.com/user/2025/03/14/08-57-21-981_250x250.jpg" | |
}, | |
{ |
# In your Django views.py | |
from firebase_admin import auth | |
def verify_token(request): | |
id_token = request.POST.get('idToken') # Adjust depending on how you send the token | |
try: | |
# Verify the ID token while checking if the token is revoked by passing check_revoked=True. | |
decoded_token = auth.verify_id_token(id_token, check_revoked=True) | |
uid = decoded_token['uid'] |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
.shimmer { | |
animation : shimmer 2s infinite; | |
background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%); | |
background-size: 1000px 100%; | |
} | |
@keyframes shimmer { | |
0% { | |
background-position: -1000px 0; | |
} |
/** | |
* Returns a sub-string with the specified keyword in the middle. | |
* @param text: Full statement with the keyword in it. | |
* @param keyword: Keyword which you want to concentrate. | |
* @param subStringLen: The length of the desired resultant string. | |
* @param truncate: If true it will add '...' at the starting and ending of the resultant string. | |
* @author sooryagangaraj | |
* @return string | |
*/ | |
function subStringAroundKeyword(text, keyword, subStringLen, truncate = true) { |
layer.cornerRadius | |
layer.borderWidth | |
layer.borderColor |
PROJECT STRUCTURE | |
├─ Global | |
├─ Application | |
├─ Main | |
├─ Target B | |
├─ Storyboards | |
├─ View Controllers | |
├─ Models | |
├─ Common Utils |
DispatchQueue.main.asyncAfter(deadline: .now() + <#delaySeconds#>, execute: { | |
<#Statements#> | |
}) |
let dispatchQueue = DispatchQueue(label: "<#background process id#>", qos: .background) | |
dispatchQueue.async{ | |
<#statements#> | |
} |
$ cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update |