Skip to content

Instantly share code, notes, and snippets.

🌮
IT'S TACO TIME!

Nick Prokesch prokizzle

🌮
IT'S TACO TIME!
Block or report user

Report or block prokizzle

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
@prokizzle
prokizzle / CodeEvalBox.js
Last active Jul 31, 2018
Adds a textarea to the top of the page that can execute javascript within the page. Useful for testing code on mobile browsers.
View CodeEvalBox.js
var codeEval = document.createElement('div');
var inputBox = document.createElement('textarea', { rows: 200, cols: 800 });
var evalButton = document.createElement('button');
var buttonText = document.createTextNode('Eval');
evalButton.appendChild(buttonText);
codeEval.appendChild(inputBox);
codeEval.appendChild(evalButton);
document.body.insertBefore(codeEval, document.body.firstElementChild);
evalButton.addEventListener('click', function () { eval(inputBox.value)});
View update-route53.sh
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com
@prokizzle
prokizzle / custom.paths.zsh
Created Sep 7, 2015
Oh-My-Zsh custom paths
View custom.paths.zsh
paths=(
"/Applications/Postgres93.app/Contents/MacOS/bin"
"$PATH:$GOPATH/bin"
"/usr/local/bin"
"/usr/local/opt"
"/usr/local"
"/opt/chefdk/bin"
"$HOME/.node/bin"
"$NPM_PACKAGES/bin"
"/usr/local/sbin"
@prokizzle
prokizzle / inject.js
Created Sep 7, 2015
Javascript External CSS Injector
View inject.js
var Inject = {
externalCSS: function(href) {
var css = document.createElement('link');
css.href = href;
css.type = 'text/css';
css.rel = 'stylesheet';
var head = document.getElementsByTagName('head')[0];
head.appendChild(css);
},
fontAwesome: function(){
@prokizzle
prokizzle / .default-gems
Created Sep 4, 2015
Chruby Default Gems Installer
View .default-gems
# Chruby Default Gem Installer
# Install gems for all installed versions of ruby
# by Nick Prokesch
source /usr/local/share/chruby/chruby.sh
gems=(
bundler
homesick
mechanize
@prokizzle
prokizzle / email_validation.js
Last active Aug 29, 2015
Foundation Abide Async Unique Email Validation
View email_validation.js
// from http://foundation.zurb.com/forum/posts/1899-zurb-abide-ajax-validation
(function($) {
$.fn.markInvalid = function(text) {
$(this).filter(":input").each(function(i, el) {
var input = $(el);
var container = input.closest(".row");
var label = container.find(".prefix");
var error = container.find("small.error");
@prokizzle
prokizzle / bucket_policy.js
Created Aug 20, 2015
AWS S3 Bucket CDN Default Public Policy
View bucket_policy.js
// http://stackoverflow.com/questions/7420209/amazon-s3-permission-problem-how-to-set-permissions-for-all-files-at-once
{
"Version":"2008-10-17",
"Id":"http referer policy example",
"Statement":[
{
"Sid":"readonly policy",
"Effect":"Allow",
"Principal":"*",
"Action":"s3:GetObject",
@prokizzle
prokizzle / css_resources.md
Last active Aug 29, 2015 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.
View css_resources.md

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@prokizzle
prokizzle / rails_resources.md
Last active Aug 29, 2015 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.
View rails_resources.md

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@prokizzle
prokizzle / javascript_resources.md
Last active Aug 29, 2015 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.
View javascript_resources.md

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
You can’t perform that action at this time.