Skip to content

Instantly share code, notes, and snippets.


Shahriar yazdipour

Block or report user

Report or block yazdipour

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PW_4_YDM.js
// Code for website
// This is the "Offline page" service worker
//Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
if (navigator.serviceWorker.controller) {
console.log('[PWA Builder] active service worker found, no need to register')
} else {
//Register the ServiceWorker
navigator.serviceWorker.register('pwabuider-sw.js', {
scope: './'
View didioExtension.js
var config={
updatePageURL: '',
var enable ='enable');
if (enable == undefined){
enable = true;'enable', true);
# 05_h.png >> 05_half.png
for file in *.png; do mv "$file" "${file/_h.png/_half.png}"; echo $f;done
# * >> *.mp4
for file in *; do mv "$file" "$file.mp4";done
# */*/ -rec >> remove *.pdf && *.doc
IFS=$'\n'; set -f ## To skip problem of directories with spaces
for f in $(find . -name '*.pdf' -or -name '*.doc'); do rm "$f"; echo $f;done
unset IFS; set +f
yazdipour /
Last active Jan 18, 2019
UTM, WGS84 Converter
import java.util.Locale;
* Class representing UTM-coordinates. Based on code from stack overflow.
* @see <a href="">Stack Overflow</a>
* @see <a href="">Wikipedia-entry on UTM</a>
* @author Rolf Rander
public class UTM
View mario.lua
-- MarI/O by SethBling
-- Feel free to use this code, but please do not redistribute it.
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM.
-- For SMW, make sure you have a save state named "DP1.state" at the beginning of a level,
-- and put a copy in both the Lua folder and the root directory of BizHawk.
if gameinfo.getromname() == "Super Mario World (USA)" then
Filename = "DP1.state"
ButtonNames = {
View Telegram Proxy Channels
yazdipour / gist:d7e2e64696a19d8bddd272bb9f611933
Created Apr 30, 2018 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View gist:d7e2e64696a19d8bddd272bb9f611933
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
yazdipour /
Created Apr 5, 2018 — forked from MoOx/
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
title tags authors
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
You can’t perform that action at this time.