Use the gsutil cors command to configure CORS on a bucket:
gsutil cors set cors-json-file.json gs://example
Where cors-json-file.json contains:
// my3DProject.js | |
var camera, scene, renderer; | |
var geometry, material, box; | |
init(); | |
animate(); | |
function init() { | |
<!DOCTYPE html> | |
<html lang="en"></html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Autocomplete Example</title> | |
<style> | |
* { | |
box-sizing: border-box; |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>jQuery UI Autocomplete - Custom data and display</title> | |
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | |
<style> | |
#project-label { | |
display: block; |
Python3 launch http server | |
python3 -m http.server |
# from Jupyter Notebook | |
### 1.1 Elementary Data Types | |
x = 4 # integer | |
print(x, type(x)) | |
y = True # boolean (True, False) | |
print(y, type(y)) |
Use the gsutil cors command to configure CORS on a bucket:
gsutil cors set cors-json-file.json gs://example
Where cors-json-file.json contains:
In rails 5 you can use add_flash_types
method. Just add it to ApplicationController and include the types you want:
# application_controller.rb
...
add_flash_types :success, :warning, :danger, :info
on your controller use the appropriate type instead of 'notice':
# Loads environment variables from file config/local_env.yml | |
# access vars using ENV['VAR_NAME'] | |
env_file = File.join(Rails.root, 'config', 'local_env.yml') | |
if File.exists?(env_file) | |
YAML.load(File.open(env_file)).each do |key, value| | |
ENV[key.to_s] = value | |
end | |
end |