Skip to content

Instantly share code, notes, and snippets.

@yanky2000
yanky2000 / .gitconfig
Created February 9, 2025 13:09
gitconfig
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
# name = ***
# email = ****
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@yanky2000
yanky2000 / iframechange.js
Created September 18, 2020 12:36 — forked from hdodov/iframechange.js
HTML iframe URL change listener for tracking when a new iframe page starts to load
function iframeURLChange(iframe, callback) {
var lastDispatched = null;
var dispatchChange = function () {
var newHref = iframe.contentWindow.location.href;
if (newHref !== lastDispatched) {
callback(newHref);
lastDispatched = newHref;
}
@yanky2000
yanky2000 / emailer.py
Created November 21, 2016 05:21 — forked from sarahholderness/emailer.py
Python scripts to read a list of customer emails and send an email with the daily weather forecast
import weather
import smtp
'''
Send a greeting email to our customer email list
with the daily weather forecast and schedule
'''
def get_emails():
# Reading emails from a file