Skip to content

Instantly share code, notes, and snippets.

View stayce's full-sized avatar

stayce stayce

  • Mountain View, CA
View GitHub Profile
@kylemcdonald
kylemcdonald / index.html
Last active August 7, 2022 18:14
Google Cloud Vision API testing from Frontend
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>vision-test</title>
<script src="libraries/p5.js" type="text/javascript"></script>
<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>
@stepheneyer
stepheneyer / cucumber-rails.md
Last active March 25, 2025 06:31
BDD testing using Cucumber, Capybara, and Rails

#Cucumber and Capybara - Behavior Driven Development

##Overview

Cucumber allows software developers to describe how software should behave in plain text. The text is written in a business-readable, domain-specific language. This allows non-programmers to write specific feature requests that can be turned into automated tests that drive development of the project.

Capybara is the largest rodent known to man.

@jsvine
jsvine / sms-backup-to-csv.rb
Last active January 6, 2024 21:25
A quick script to convert the XML from Android app "SMS Backup & Restore" into CSV.
#!/usr/bin/env ruby
# A quick script to convert the XML from Android app "SMS Backup & Restore" into CSV.
#
# Usage: $ ./sms-backup-to-csv.rb < PATH/TO/BACKUP/FILE.xml
require "nokogiri"
require "csv"
# Specify the backup file's attributes and data types.
@toranb
toranb / filtersortpagemixin.js
Created September 24, 2012 02:37
filter/sort/pagination mixin for ember.js
var get = Ember.get;
/**
* @extends Ember.Mixin
*
* Implements common filter / sort / pagination behavior for array controllers
* */
Ember.FilterSortSliceMixin = Ember.Mixin.create({
filterBy: '',
@stayce
stayce / readme
Created June 27, 2012 22:13
first draft UIT readme
UI Toolkit -- A Toolkit for Wildfire Developers
====================================
## DESCRIPTION
UI Toolkit (UIT) is a Rails Engine packaged as a Ruby Gem that contains code for WF Developers to help keep apps looking good across the WF social suite and its plugins. UIT includes layout partials, component partials, styles, and javascript as well as external library dependencies.
UIT also includes a sandbox app which provides documentation and working demos of how to use the included UI components.
Approximately 15 applications use UIT to provide look and feel, with a community of around 5 developers and product owners. It affects the users of 13,000 customers, reaching thousands of marketers.
@fedesoria
fedesoria / prepend_checkbox_input.rb
Created October 14, 2011 23:40
Custom input for simple_form using twitter bootstrap
class PrependCheckboxInput < SimpleForm::Inputs::Base
def input
"<div class='input-prepend'>
<label class='add-on active' title='#{options[:tooltip]}' rel='tooltip' >
#{@builder.check_box(attribute_name.to_s + '_check')}
</label>
#{@builder.text_field(attribute_name, input_html_options)}
<span class='help-inline'>
#{options[:help]}
</span>