This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Player | |
| attr_accessor :warrior, :health, :direction | |
| def play_turn(warrior) | |
| @warrior = warrior | |
| @turn ||= 0 | |
| check_direction | |
| determine_action | |
| @health = warrior.health |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * Exposes global functionality for creating image styles. | |
| */ | |
| /** | |
| * Image style constant for user presets in the database. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %div{ data: { init: 'somescript' } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Spec::Matchers.define :intersect_with do |challenge_range| | |
| # Check to see if any elements exist in the intersection | |
| match do |current_range| | |
| [current_range.to_a & challenge_range.to_a].flatten.any? | |
| end | |
| failure_message_for_should do |current_range| | |
| "#{current_range.inspect} doesn't overlap with #{challenge_range.inspect}" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "bundler/setup" | |
| require "harvest_automatic" | |
| require "active_support/core_ext/numeric/time" | |
| require "active_support/core_ext/array/grouping" | |
| require "awesome_print" | |
| def days_during_time_period(starting_date, ending_date) | |
| date = starting_date | |
| dates = [] | |
| while date < ending_date do |
This is a instruction to patch the usb infrared toy driver into lirc sources. Most of the work is done by Peter Kooiman
- Debian based OS (only tested on rapbian)
- root privileges
- USB Infrared Toy
We have developed the Kate Spade Unlock Your Heart experience in two main parts:
- a static site generated by a Vue.js app
- a serverless lambda app (hosted on now) that generates and uploads a share image and share url
The two apps live in the same git repository hosted on GitHub here: https://github.com/kingandpartners/unlock-your-heart
The Vue.js app generates and deploys the static site that lives at https://katespadeunlockyourheart.com.
- we utilized Vue.js' Single File Components to architect the primary UI/UX
- inside the
.vuefiles we use SCSS