Skip to content

Instantly share code, notes, and snippets.

View waysidekoi's full-sized avatar
🚴‍♂️

Wayne Yang waysidekoi

🚴‍♂️
View GitHub Profile
@waysidekoi
waysidekoi / failed_test
Created June 30, 2015 18:01
Failed test on platform-all - spec/lib
1) PlatformAll::IntegrationEnvironment given an integration environment instantiated with client, environment, and account #prepare! bootstraps vm, checks out dependencies, and bootstraps client data
Failure/Error: subject.prepare!
RuntimeError:
Benzo tried to reach outside of the specs with: git clone, {":repo"=>"git@github.com:mdx-dev/platform-provisioning.git", ":local_path"=>"/Users/wyang/code/platform-all/dependencies/platform-provisioning"}! and you didn't tag your example group as integration
# ./spec/support/default_stubs.rb:6:in `block (3 levels) in <top (required)>'
# ./lib/platform_all/dependency_getter.rb:19:in `clone!'
# ./lib/platform_all.rb:31:in `block in checkout_all_dependencies!'
# ./lib/platform_all/repository_list.rb:15:in `block in each'
# ./lib/platform_all/repository_list.rb:14:in `each'
# ./lib/platform_all/repository_list.rb:14:in `each'
@waysidekoi
waysidekoi / howto.md
Last active August 29, 2015 14:10
How to set up BX Slider

Setting up the BX Slider

###Demo: http://waysidekoi.github.io/test

###Step 1: Link required files

First and most important, the jQuery library needs to be included (no need to download - link directly from Google). Next, download >the package from this site and link the bxSlider CSS file (for the theme) and the bxSlider Javascript file.

@waysidekoi
waysidekoi / README
Last active August 29, 2015 13:57
Vigenere cipher (source: http://www.problemotd.com/)
Vigenere cipher
The Vigenere cipher made its rounds in the mid-1550s up until the end of the American Civil War.
It was very easy for soldiers to encode messages and pass them around to all the allied camps. It
was very easy for soldiers to encode messages and pass them aroudn to all the allied camps.
The cipher requires a key and a message. It works like this:
Key:
REDDIT
@waysidekoi
waysidekoi / main.html
Created May 1, 2013 01:27
no luck getting sample boards to display content correctly :( contenteditable is magic
<html>
<head>
<title>Post-It Board</title>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div id="board_selector">
<h3>Select a board</h3>
@waysidekoi
waysidekoi / gist:5455690
Created April 24, 2013 21:22
mass assignment........ !
post = Post.new
post.user = current_user
post.attributes = params[:post]
post.save
<input name="post[user_id]" value="3">