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
[ | |
{ | |
"name":"Alentejo", | |
"code":1 | |
}, | |
{ | |
"name":"Algarve", | |
"code":2 | |
}, | |
{ |
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
const getFontSize = (textLength) => { | |
const baseSize = 9 | |
if (textLength >= baseSize) { | |
textLength = baseSize - 2 | |
} | |
const fontSize = baseSize - textLength | |
return `${fontSize}vw` | |
} | |
const boxes = document.querySelectorAll('.content h1') |
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
{% capture email_title %}Takk for din bestilling! {% endcapture %} | |
{% capture email_body %}Hei {{ customer.first_name }}, {% if attributes.Checkout-Method == "pickup" %}we're getting your order ready for collection.{% elsif attributes.Checkout-Method == "delivery" %}we're getting your order ready to be delivered. We will notify you when it has been sent.{% else %}we're getting your order ready to be shipped. We will notify you when it has been sent.{% endif %}{% endcapture %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>{{ email_title }}</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css"> |
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
library(tidyquant) | |
library(dplyr) | |
library(dygraphs) | |
jpDebt <- tq_get(x = c("DEBTTLJPA188A"), get = "economic.data", from = "1994-01-01") | |
jpDebtSelect <- select(jpDebt, 3) | |
jpDebtTs <- ts(jpDebtSelect, start=c(1994, 1), end=c(2015, 4), frequency=4) | |
jpDebtSmooth <- predict(td(jpDebtTs ~ 1, method = "denton-cholette", conversion = "average")) | |
jpDebtSmooth |
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
Year | Value | |
---|---|---|
2014 | 0.1 | |
2015 | 0.1 | |
2016 | 0.18 | |
2017 | 0.4 | |
2018 | 0.5 | |
2019 | 0.8 |
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
{% block content %} | |
<div class="row card-columns"> | |
{% for i in index %} | |
<div class="col-12"> | |
<div class="card my-5"> | |
<h3 class="card-header">Choice {{ i }}</h3> | |
<div class="card-body px-5"> | |
<div class="row card-deck"> | |
{% for choice in form.choice_1 %} | |
<div class="card"> |
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
{1:{A:[low,high],B[low,high]}, 2:{A:[low,high],B[low,high]}, 3:{A:[low,high],B[low,high]}} |
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
class Lottery: | |
"""Create a class to generate a lottery as in HOLT(2002). Has methods to set the number of choices, | |
if probabilities should be displayed as fractions, percentage or floats, set the payoff amounts.""" | |
def __init__(self, name): | |
self.name = name | |
# Set the number of choices the user should get, and create an index of number of choices | |
def set_choices(self, choices): |
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
const { registerBlockType } = wp.blocks; | |
const { RichText, InspectorControls, MediaUpload } = wp.editor; | |
registerBlockType('custom/highlights', { | |
title: 'Highlights', | |
icon: 'universal-access-alt', | |
category: 'layout', | |
attributes: { | |
content: { | |
type: '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
root@ubuntu-cosmic:/home/vagrant# systemctl restart gutenberg-compiler | |
root@ubuntu-cosmic:/home/vagrant# systemctl restart gutenberg-compiler | |
root@ubuntu-cosmic:/home/vagrant# journalctl -f -u gutenberg-compiler | |
-- Logs begin at Mon 2019-06-24 20:17:44 UTC. -- | |
Jun 25 20:58:18 ubuntu-cosmic wp-scripts[2341]: index.js 12.1 KiB index [emitted] index | |
Jun 25 20:58:18 ubuntu-cosmic wp-scripts[2341]: index.js.map 16.2 KiB index [emitted] index | |
Jun 25 20:58:18 ubuntu-cosmic wp-scripts[2341]: index.deps.json 28 bytes index [emitted] index | |
Jun 25 20:58:18 ubuntu-cosmic wp-scripts[2341]: Entrypoint index = index.js index.js.map index.deps.json | |
Jun 25 20:58:18 ubuntu-cosmic wp-scripts[2341]: [./src/blocks/box.js] 591 bytes {index} [built] | |
Jun 25 20:58:18 ubuntu-cosmic wp-scripts[2341]: [./src/blocks/button.js] 1.12 KiB {index} [built] |
NewerOlder