Skip to content

Instantly share code, notes, and snippets.

@olafghanizadeh
olafghanizadeh / regions.json
Last active September 12, 2021 09:14
portugal-regions
[
{
"name":"Alentejo",
"code":1
},
{
"name":"Algarve",
"code":2
},
{
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')
{% 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">
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
Year Value
2014 0.1
2015 0.1
2016 0.18
2017 0.4
2018 0.5
2019 0.8
{% 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">
{1:{A:[low,high],B[low,high]}, 2:{A:[low,high],B[low,high]}, 3:{A:[low,high],B[low,high]}}
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):
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',
Time Event PID Info Duration Process
20:50:36 fork 1451 parent sshd: vagrant@notty
20:50:36 fork 2001 child sshd: vagrant@notty
20:50:36 exec 2001 bash -c
20:50:36 exit 2001 0 0.010s bash -c
20:50:36 fork 1451 parent sshd: vagrant@notty
20:50:36 fork 2002 child sshd: vagrant@notty
20:50:36 exec 2002 bash -l
20:50:36 exec 2002 bash -l
20:50:36 fork 2002 parent bash -l