Skip to content

Instantly share code, notes, and snippets.

View joeynebula's full-sized avatar

Joey joeynebula

  • Oklahoma
View GitHub Profile
@joeynebula
joeynebula / RequiredFieldsFromXsd.py
Created November 8, 2016 21:01
Create github markdown file showing all required fields from an xsd file
#!/usr/bin/python
import sys
import getopt
def main(argv):
inputfile = ''
outputfile = ''
try:
opts, args = getopt.getopt(argv, "hi:o:", ["ifile=", "ofile="])
@joeynebula
joeynebula / git-tag-delete-local-and-remote.sh
Created August 24, 2016 16:43 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@joeynebula
joeynebula / ChatMessage.java
Created August 1, 2016 17:29 — forked from puf/ChatMessage.java
Zero to App: Develop with Firebase (for Android - Google I/O 2016)
package com.google.firebase.zerotoapp;
public class ChatMessage {
public String name;
public String message;
public ChatMessage() {
}
public ChatMessage(String name, String message) {
@joeynebula
joeynebula / inline_progress_bar_no_lib.rake
Created May 22, 2016 06:37
no lib cli progress bar for rake task
require 'json'
require 'openssl'
task :test do
progress = 'Progress ['
count = 1
total = SomeModel.count
SomeModel.all.each do |m|
m.do_something
count = count + 1
@joeynebula
joeynebula / circle_solid.xml
Created May 12, 2016 14:21
solid circle drawable android
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners
android:topLeftRadius="100dp"
android:topRightRadius="100dp"
android:bottomLeftRadius="100dp"
android:bottomRightRadius="100dp"
/>
<solid
android:color="#9c0004"
/>
@joeynebula
joeynebula / README.md
Created February 11, 2016 02:51 — forked from smileart/README.md
My ZSH Theme — Agnoster Mod

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility

@joeynebula
joeynebula / ToastHandler.java
Created December 18, 2015 20:09
Helper class to send toasts from background thread.
import android.content.Context;
import android.os.Handler;
import android.widget.Toast;
/*
Taken from an answer in the following thread
http://stackoverflow.com/questions/7378936/how-to-show-toast-message-from-background-thread
From user kaolick
@joeynebula
joeynebula / allmd5.sh
Last active November 12, 2015 18:03
Create md5 files for all files in dir
#!/bin/sh
#makes checksums for all files in a given dir
echo "making a md5 for all files in dir = $1"
rm $1/*.md5
for f in $1/*
do
echo "processing $f"
md5 $f > $f.md5
done
#get rid of the script md5's
@joeynebula
joeynebula / my-aliases.txt
Created November 12, 2015 15:12
Aliases I use
alias ts="tig status"
alias gsereset="dropdb gse_backend_development & heroku pg:pull HEROKU_POSTGRESQL_JADE gse_backend_development -a gse-mobile-api"
alias reds="redis-server"
alias ..="cd .."
alias ....="cd ../.."
alias ......="cd ../../.."
alias ........="cd ../../../.."
alias ..........="cd ../../../../.."
alias webdev="cd ~/Documents/websites/"
alias droiddev="cd ~/Docments/android/"
@joeynebula
joeynebula / mkdircd.sh
Created November 12, 2015 15:10
Make a dir and then cd into it
function mkdircd () { mkdir -p "$@" && eval cd "\"\$$#\""; }