Skip to content

Instantly share code, notes, and snippets.

View ELY3M's full-sized avatar
🌪️
.

ELY M. ELY3M

🌪️
.
View GitHub Profile
@sjf
sjf / MainActivity.java
Last active May 27, 2024 16:49
Android screen overlay example. Draws a button over other apps.
package io.sjf.overlay;
import android.annotation.TargetApi;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
@cameroncowden
cameroncowden / page.google-product-feed.liquid
Created August 15, 2018 15:34
Shopify Google Product Feed xml generator
{% comment %}
Instructions:
- Create a blank page called 'Google Base Product Feed'and save it
- Open that page for editing and select 'page.google-feed' from the page template selector
- Add a brief site description to the meta-shop-description snippet
- The feed url should now be available at http://www.yoursite.com/pages/google-base-product-feed
- validate your field at http://validator.w3.org/feed/
- when ready, submit your feed at http://base.google.com
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@greencoder
greencoder / process.py
Created September 30, 2014 14:24
NOAA RIDGE Radar fringe remover
import numpy
import requests
import StringIO
# Use Pillow
from PIL import Image
# Get the latest radar image
request = requests.get('http://radar.weather.gov/ridge/Conus/RadarImg/latest_radaronly.gif')