Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

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 ElecProxy.md
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={
homeURL:'https://www.dideo.ir',
updatePageURL: 'http://blog.dideo.ir/?p=629',
installURL:'http://blog.dideo.ir/?p=218'
};
var enable = kango.storage.getItem('enable');
if (enable == undefined){
enable = true;
kango.storage.setItem('enable', true);
View BashUtils.sh
# 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
yazdipour / UTM.java
Last active Jan 18, 2019
UTM, WGS84 Converter
View UTM.java
import java.util.Locale;
/**
* Class representing UTM-coordinates. Based on code from stack overflow.
* @see <a href="https://stackoverflow.com/questions/176137/java-convert-lat-lon-to-utm">Stack Overflow</a>
* @see <a href="https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system">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 = {
"A",
View Telegram Proxy Channels
https://t.me/shareproxyfree
https://t.me/SSRlist
https://t.me/gyjclub
https://t.me/HFCHB
@yazdipour
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
yazdipour / README.md
Created Apr 5, 2018 — forked from MoOx/README.md
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
View README.md
title tags authors
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
git
github
gitlab
bitbucket
MoOx
You can’t perform that action at this time.