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 'net/http' | |
| require 'json' | |
| def run(coins_goal, current_coins, current_price=nil) | |
| if current_price.nil? | |
| result = Net::HTTP.get(URI('https://api.gdax.com/products/ETH-USD/stats')) | |
| current_price = JSON.parse(result)["open"].to_f | |
| 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
| <!-- <section class="periodic-questions" style="display: none;"> | |
| <div class="questions-list"> | |
| <% @question_dates.each do |date| %> | |
| <% if date.monday? %> | |
| <article | |
| data-role="tour-surveys-heartbeat" | |
| class="pending-question sheet <%= 'active' unless current_organization.heartbeats_inactive? || current_organization.holidays.on(date).any? %>"> | |
| <div class="day_calendar medium"> | |
| <time class="title"><%= relative_future_date(date) %></time> | |
| <time class="text"><%= date.strftime('%b') %></time> |
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
| <!-- <section class="periodic-questions" style="display: none;"> | |
| <div class="questions-list"> | |
| <% @question_dates.each do |date| %> | |
| <% if date.monday? %> | |
| <article | |
| data-role="tour-surveys-heartbeat" | |
| class="pending-question sheet <%= 'active' unless current_organization.heartbeats_inactive? || current_organization.holidays.on(date).any? %>"> | |
| <div class="day_calendar medium"> | |
| <time class="title"><%= relative_future_date(date) %></time> | |
| <time class="text"><%= date.strftime('%b') %></time> |
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
| body{ | |
| color: #424242; | |
| background-color: #ECEFF1; | |
| font-family: sans-serif; | |
| } | |
| h1{ | |
| color: #03A9F4; | |
| text-align: center; | |
| margin-top: 20px; |
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
| body{ | |
| color: #424242; | |
| background-color: #ECEFF1; | |
| font-family: sans-serif; | |
| } | |
| h1{ | |
| color: #03A9F4; | |
| text-align: center; | |
| margin-top: 20px; |
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
| <style> | |
| h1 { | |
| font-size: 30px; | |
| border-bottom: 1px solid #CCCCCC; | |
| } | |
| </style> | |
| <ul> | |
| <li><input type="checkbox"/><a href="show.html">Workshop Todo List</a></li> |
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
| func logMessage(message message:String, | |
| withPrefix prefix: NSString, | |
| andSuffix suffix: NSString) { | |
| print("\(prefix)-\(message)-\(suffix)") | |
| } | |
| logMessage(message: "QWERTY", withPrefix: "***", andSuffix: "$$$") |
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
| const cmd = Trigger.TextField.toLowerCase() | |
| const colors:{[key:string]:string} = { | |
| 'white': '#FFFFFF', | |
| 'warm': '#FFE14B', | |
| 'warmer': '#FFD13A', | |
| 'black': 'purple', | |
| 'red': 'red', | |
| 'orange': 'orange', | |
| 'yellow': 'yellow', |
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
| const hour = Meta.currentUserTime.hour() | |
| const colorKey = hour.toString() | |
| const colors: {[key:string]:string} = { | |
| "17":"#F3F2EB", | |
| "18":"#F7F2E6", | |
| "19":"#F9EFE0", | |
| "20":"#FBEFDC", | |
| "21":"#FBE5C6", | |
| "22":"#FBE5C6" |
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
| web: bundle exec puma -p $PORT config.ru |