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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>HTML and CSS </title> | |
<link href="style.css" rel="stylesheet" type="text/css" /> | |
</head> |
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
import requests | |
import collections | |
import re | |
resp = requests.get('https://raw.githubusercontent.com/justkaran/weltall/master/index.html') | |
txt = resp.text | |
from bs4 import BeautifulSoup | |
soup = BeautifulSoup(txt, "html.parser") | |
# 1. The number of <br> tags. | |
length = len(soup.find_all(re.compile("^br"))) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import tensorflow as tf | |
import numpy as np | |
corpus_raw = 'He is the king . The king is royal . She is the royal queen ' | |
# convert to lower case | |
corpus_raw = corpus_raw.lower() | |
words = [] | |
for word in corpus_raw.split(): |
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
import time | |
SpeedOnAverage = int(input('Whats the average speed of your car?')) | |
dividedBy99 = 99.7793 / SpeedOnAverage | |
print("If your car could fly and hold the pressure it would take you " + str(dividedBy99) + " hours to reach the orbit.") |
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
import time | |
SpeedOnAverage = int(input('Whats the average speed of your car?')) | |
dividedBy99 = 99.7793 / SpeedOnAverage | |
print("If your car could fly and hold the pressure it would take you " + str(dividedBy99) + " hours to reach the orbit.") |
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
using UnityEngine; | |
using UnityEngine.VR; | |
public class UpdateEyeAnchors : MonoBehaviour | |
{ | |
GameObject[] eyes = new GameObject[2]; | |
string[] eyeAnchorNames = { "LeftEyeAnchor", "RightEyeAnchor" }; | |
void Update() |
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
import pika, os, urlparse, sys | |
from Adafruit_Thermal import * | |
printer = Adafruit_Thermal("/dev/ttyAMA0", 19200, timeout=5) | |
url_str = os.environ.get('CLOUDAMQP_URL','amqp://YOUR_CLOUDAMQP_URL') | |
url = urlparse.urlparse(url_str) | |
params = pika.ConnectionParameters(host=url.hostname, virtual_host=url.path[1:], | |
credentials=pika.PlainCredentials(url.username, url.password)) |