Skip to content

Instantly share code, notes, and snippets.

View indytechcook's full-sized avatar

Neil Hastings indytechcook

  • Indianapolis, IN
View GitHub Profile
### Keybase proof
I hereby claim:
* I am indytechcook on github.
* I am indytechcook (https://keybase.io/indytechcook) on keybase.
* I have a public key whose fingerprint is 1140 2923 3CD0 890A EC2C 7E40 50A0 43C8 33A1 161B
To claim this, I am signing this object:
@indytechcook
indytechcook / swagger.yaml
Last active August 29, 2015 14:14
Serenity Pet Store Example Yaml
swagger: "2.0"
info:
version: 1.0.0
title: Swagger Petstore
host: localhost
schemes:
- http
consumes:
- application/json
produces:
@indytechcook
indytechcook / javascript_resources.md
Last active August 29, 2015 14:11 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

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
@indytechcook
indytechcook / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// return rounded version of x with prec precision.
func roundFloat(x float64, prec int) float64 {
var rounder float64
pow := math.Pow(10, float64(prec))
intermed := x * pow
_, frac := math.Modf(intermed)
intermed += .5
x = .5
if frac < 0.0 {
x = -.5
@indytechcook
indytechcook / php-switch
Created September 24, 2012 12:02 — forked from Sir-Arturio/php-switch
a php switching utillity for homebrew
#!/bin/sh
# php switch for homebrew
# $ brew tap josegonzalez/php && brew install php53 --with-mysql && brew install php54 --with-mysql
# Please add '/usr/local/Cellar/php/bin' to the beginning of your PATH variable to enable the command line binaries.
# Might as well ask for password up-front, right?
sudo -v
@indytechcook
indytechcook / gist:3666939
Created September 7, 2012 15:03
drupal custom block schema
<?php
/**
* @file
* Block Custom installation routines
*/
/**
* Implements hook_schema().
*/
@indytechcook
indytechcook / custom_bean.info
Created December 11, 2011 14:18
Bean Listing Exammple
name = Custom Beans
description = My Custom Beans
core = 7.x
files[] = "custom_bean.listing.inc"
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
#guard 'spork', :rspec_env => { 'RAILS_ENV' => 'test' }, :wait => 60 do
# watch('config/application.rb')
# watch('config/environment.rb')
# watch(%r{^config/environments/.+\.rb$})
# watch(%r{^config/initializers/.+\.rb$})
# watch('Gemfile')
# watch('Gemfile.lock')
require 'formula'
class Phpsh < Formuala
url 'git://github.com/facebook/phpsh.git', :using => :git
homepage 'http://www.phpsh.org/'
depends_on 'git', 'python', 'readline'
def install
system 'python setup.py build'