This file contains 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
{ | |
"team":"miami heat", | |
"id": "1" | |
"colors": ["red, yellow, black"] | |
{ | |
"colorName":"miami heat red", | |
"HEX":"98002E", | |
"RGB":"(152,0,46)", | |
"CMYK":"(0,100,61,43)" | |
} |
This file contains 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
.col-lg-4.col-md-4 | |
.one-post-card.card.datacont | |
= link_to article | |
.header.clearfix | |
.title.proxima-semibold = article.data.title | |
.icon | |
= image_tag article.data.image | |
.body | |
p = article.data.description.truncate(160) | |
= image_tag article.data.image |
This file contains 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
# frozen_string_literal: true | |
require 'stripe' | |
module Stripe | |
# A subscription schedule allows you to create and manage the | |
# lifecycle of a subscription by predefining expected changes. | |
DECLINE_CODES = HashWithIndifferentAccess.new( | |
approve_with_id: "The payment cannot be authorized. The payment should be attempted again. If it still cannot be processed, contact the card issuer.", | |
call_issuer: "The card has been declined for an unknown reason. Try a different payment method, or contact the card issuer for more information.", | |
card_not_supported: "The card does not support this type of purchase. Contact the card issuer to make sure the card can be used to make this type of purchase.", |
This file contains 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
param :first_name, String, required: true, format: /^[a-zA-Z -]{2,30}$/ | |
param :last_name, String, required: true, format: /^[a-zA-Z -]{2,30}$/ | |
param :email, String, required: true, transform: :downcase, format: /^[a-z0-9.+]{1,45}@[a-z0-9-]+(\.[a-z0-9]{2,})+$/ | |
param :company_name, String, required: true | |
param :title, String, required: true, min_length: 3 | |
param :message, String, required: true, min_length: 10 |
This file contains 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
before do | |
headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, DELETE, OPTIONS' | |
headers['Access-Control-Allow-Origin'] = '*' | |
headers['Access-Control-Allow-Headers'] = 'accept, authorization, origin' | |
end |
This file contains 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 class="bg"> | |
</div> | |
.bg { | |
/* Background image and gradient */ | |
background: url() fixed, linear-gradient(to bottom, #ffee75 3%,#ffb06b 27%,#e86f97 50%,#b08cff 75%,#5477af 100%); | |
/* Background blend mode | |
for blending the image and thegradient. |
This file contains 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
function main() { | |
var fs = window.RequestFileSystem || window.webkitRequestFileSystem; | |
if (!fs) { | |
result.textContent = "check failed?"; | |
return; | |
} | |
fs(window.TEMPORARY, 100, function(fs) { | |
result.textContent = "it does not seem like you are in incognito mode"; | |
}, function(err) { | |
result.textContent = "it seems like you are in incognito mode"; |
This file contains 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
/* iOS BLUE LINKS */ | |
a[x-apple-data-detectors] { | |
color: inherit !important; | |
text-decoration: none !important; | |
font-size: inherit !important; | |
font-family: inherit !important; | |
font-weight: inherit !important; | |
line-height: inherit !important; | |
} |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am tgemayel on github. | |
* I am udonis (https://keybase.io/udonis) on keybase. | |
* I have a public key ASDiUTlRmr2gVXKijYTp1VcWmn_K9tUu15wbNrYM7E1s9Ao | |
To claim this, I am signing this object: |
This file contains 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
#! /usr/bin/env python3 | |
import RPi.GPIO as GPIO | |
import serial | |
import sys | |
ENABLE_PIN = 18 # The BCM pin number corresponding to GPIO1 | |
SERIAL_PORT = '/dev/ttyAMA0' # The location of our serial port. This may | |
# vary depending on OS version. |
NewerOlder