Skip to content

Instantly share code, notes, and snippets.

View dewyze's full-sized avatar

John DeWyze dewyze

  • Shopify
  • Chicago, IL
View GitHub Profile
@dewyze
dewyze / pizza_dough_recipe.md
Last active April 30, 2020 15:32
Pizza Dough Recipe

Dewzy's Deep Dish Pizza

Dough

Ingredients (Makes two 14" dough balls)

  • 2 C water (room temp)
  • 2 packages quick-rise yeast or 4 1/2 tsp
  • 1/2 C Vegetable Oil
  • 4 T Olive Oil
  • 5 1/2 C Bread Flour (I prefer King Arthur, the blue bag)
@dewyze
dewyze / AndroidPicResize.py
Created January 9, 2016 19:58
AndroidPicResize.py
import os
import sys
from PIL import Image
"""
Version 0.1.0
(c) 2013 John DeWyze
License: MIT
See README.md for usage guidelines
"""
@dewyze
dewyze / keybase.md
Created April 17, 2015 03:19
Keybase

Keybase proof

I hereby claim:

  • I am dewyze on github.
  • I am dewyze (https://keybase.io/dewyze) on keybase.
  • I have a public key whose fingerprint is 25E0 E90A 6202 9B51 C006 C37D F335 437E DE58 A0E0

To claim this, I am signing this object:

@dewyze
dewyze / freememory.rb
Created January 12, 2015 04:18
Ruby script for a pretty-print value of free memory for use in shell prompt
#!/usr/bin/env ruby
# encoding: utf-8
# By Uğur Özyılmazel, @vigobronx | @ugurozyilmazel
# http://vigodome.com | http://ugur.ozyilmazel.com | http://github.com/vigo
def get_paged_memory_usage(match_string, paging=4096)
mvar = 3
if match_string.split(/[^\\w]/).length > 1
mvar = 4
@dewyze
dewyze / fontNames
Created January 4, 2015 22:38
Get font names in iOS - Swift
for family in UIFont.familyNames() {
let familyString = family as NSString
println(familyString)
for name in UIFont.fontNamesForFamilyName(familyString) {
println(name)
}
}
@dewyze
dewyze / textarea-maxlength.js
Last active September 15, 2016 08:53
jQuery textarea maxlength for both keypress and paste. Covers lack of "maxlength" attribute in IE. Some credit goes to here: http://stackoverflow.com/questions/6877518/jquery-textarea-maxlength for the keypress section.
var ignore = [8,9,13,33,34,35,36,37,38,39,40,46];
$('textarea[maxlength]')
.live({
keypress: function(event) {
var self = $(this),
maxlength = self.attr('maxlength'),
code = $.data(this, 'keycode');
// check if maxlength has a value.