Create a Slack bot that allows to interact with dog.ceo/dog-api.
The bot should join the #dogs
channel and listen for the following commands.
hey bot, show great dane
hey bot, show random
hey bot, find hound
/* Media queries*/ | |
@media only screen | |
and (min-device-width: 320px) | |
and (max-device-width: 1024px) | |
and (-webkit-min-device-pixel-ratio: 2) | |
and (orientation: portrait) { | |
header { | |
grid-template-columns: 1fr; | |
} |
Create a Slack bot that allows to interact with dog.ceo/dog-api.
The bot should join the #dogs
channel and listen for the following commands.
hey bot, show great dane
hey bot, show random
hey bot, find hound
class Grid { | |
constructor(length) { | |
this.length = length; | |
this.grid = []; | |
for (let v = 0; v < length; v += 1) { | |
for (let h = 0; h < length; h += 1) { | |
this.grid.push(' '); | |
} | |
} | |
} |
fizz({ | |
messages: [ | |
{message: 'fizz', value: 3}, | |
{message: 'buzz', value: 5}, | |
{message: 'fizzbuzz', value: 15}, | |
{message: 'bar', value: 11} | |
], | |
sequenceFrom: 1, | |
sequenceTo: 11, | |
test: (number, value) => number % value === 0 |
def testFooter(self): | |
""" | |
Testing if footer contains a valid phone number. | |
""" | |
footer = driver.find_element(By.ID, 'footer-content') | |
paragraph = footer.find_element_by_css_selector('p') | |
phone = re.findall(r'phone \d{3}-\d{3}-\d{4}', paragraph.text) | |
self.assertEquals(len(phone), 1) | |
self.assertEquals('phone 510-885-3000', phone[0]) |
"use strict"; | |
class Point | |
{ | |
constructor (coordinates) { | |
if (!(coordinates instanceof Array)) { | |
throw 'Error: Point constructor requires an array of coordinates.'; | |
} | |
this._coordinates = coordinates; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
margin: 0px; | |
} | |
</style> | |
</head> | |
<body> |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: FATAL EXCEPTION: main | |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: Process: co.developertime.android.recon, PID: 14509 | |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations. | |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1599) | |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1552) | |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: at com.google.android.gms.location.internal.zzi$zza$zza.zza(Unknown Source) | |
10-17 12:15:58.717 14509-14509/co.developertime.android.recon E/AndroidRuntime: at com.google.android.gms.location.internal.zzk.zza(Unknown Source) | |
1 |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="co.developertime.android.recon" > | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |