Skip to content

Instantly share code, notes, and snippets.

View danielvlopes's full-sized avatar

Daniel Lopes danielvlopes

View GitHub Profile
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
<!-- <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>
<!-- <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>
body{
color: #424242;
background-color: #ECEFF1;
font-family: sans-serif;
}
h1{
color: #03A9F4;
text-align: center;
margin-top: 20px;
body{
color: #424242;
background-color: #ECEFF1;
font-family: sans-serif;
}
h1{
color: #03A9F4;
text-align: center;
margin-top: 20px;
<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>
func logMessage(message message:String,
withPrefix prefix: NSString,
andSuffix suffix: NSString) {
print("\(prefix)-\(message)-\(suffix)")
}
logMessage(message: "QWERTY", withPrefix: "***", andSuffix: "$$$")
const cmd = Trigger.TextField.toLowerCase()
const colors:{[key:string]:string} = {
'white': '#FFFFFF',
'warm': '#FFE14B',
'warmer': '#FFD13A',
'black': 'purple',
'red': 'red',
'orange': 'orange',
'yellow': 'yellow',
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"
@danielvlopes
danielvlopes / Procfile
Created May 10, 2017 06:50 — forked from jbhannah/Procfile
Jekyll on Heroku without Rack::Jekyll or custom buildpacks
web: bundle exec puma -p $PORT config.ru