Numbers
1 + 1
``
##heroku | |
alias hp="heroku_helper production" | |
alias hs="heroku_helper staging" | |
alias hpc="heroku_helper production run console" | |
alias hpl="heroku_helper production logs" | |
alias hprdbm="heroku_helper production run rake db:migrate" | |
alias hsc="heroku_helper staging run console" | |
alias hsl="heroku_helper staging logs" |
module EffectsTest where | |
import Html exposing (..) | |
import Html.Events exposing (onClick) | |
import StartApp exposing (App) | |
import Task exposing (Task) | |
import Effects exposing (Effects, Never) | |
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: "js/app.js" | |
}, | |
stylesheets: { | |
joinTo: "css/app.css" | |
}, | |
templates: { | |
joinTo: "js/app.js" |
defmodule Roller do | |
@moduledoc """ | |
Responsible for making dice roles. | |
""" | |
@doc """ | |
Parses the given roll string, rolls the result and returns it. | |
""" | |
@spec roll(String.t(), function) :: integer | |
def roll(die_string, rand \\ :rand) do |
defmodule MySum do | |
def sum(x, y), do: x + y | |
end |
SELECT DISTINCT ?item ?itemLabel ?height | |
WHERE | |
{ | |
VALUES ?o { | |
wd:Q48352 | |
wd:Q2285706 | |
} | |
?item wdt:P21 wd:Q6581097; | |
wdt:P39 ?postition. | |
?postition wdt:P279 ?o. |
""" | |
" Simple D&D Flavor Text Generator | |
""" | |
import openai | |
import pprint | |
# Please sign up for an OpenAI account, generate an API key and paste it below | |
# https://platform.openai.com/docs/api-reference/authentication | |
openai.api_key = "ADD VALID OPENAI API KEY HERE" |