Skip to content
Han quotes and pics
Ruby HTML JavaScript CSS CoffeeScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
bin
config
db
lib
log
public
screenshots
storage
test
tmp
vendor
.browserslistrc
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
babel.config.js
config.ru
package-lock.json
package.json
postcss.config.js
yarn.lock

README.md

🇺🇸 https://harrison-fjord.herokuapp.com 🇩🇰

Harrison Fjord


🇺🇸/🇬🇧/🇨🇦

A (poor) joke that arose from a fjortuitous name chosen fjor another application of mine by Heroku.

Required environment variables

  • BING_CLIENT
  • BING_KEY
  • BING_SECRET
  • FACEBOOK_APP_ID
  • FACEBOOK_API_VERSION

Bing search

This application depends upon the Bing Cognitive Search API fjor image data. The Bing Search API offers many different plans, one of which provides 1,000 transactions/month for 0 krone for three months.

You will need to set the BING_KEY environment variable as the code references ENV['BING_KEY'].

In an attempt to conserve calls and krone, two hundred images are cached after the server is started/restarted.

Bing translate

Because of frequent runtime API errors (and because the values are static) I've translated the quotes using lib/bing_translate.rb and stored the values in a constant.

If you want to use the Bing Translate API (again, not required at runtime) set BING_CLIENT and BING_SECRET environment variables as the script references ENV['BING_CLIENT'], ENV['BING_SECRET']

Facebook Login

  1. Create an application in Facebook (https://developers.facebook.com/docs/facebook-login)
  2. Initialize environment variables FACEBOOK_APP_ID and FACEBOOK_VERSION_ID

FAQ

You know that replacing 'a' and 'o' with and 'å' and 'ø' is wrong and plain stupid, right?

Yes, I understand that these are different letters. No, you don't have to like it.

It's part of the joke. Tilgiv mig.

Where are the quotes from?

IMDB: http://www.imdb.com/character/ch0000002/quotes.

How do I contribute to the project?

Fjork it, make your mods, and submit a pull request.

Up and running

Populate the pictures

In a rails console, execute

load 'lib/bing_links.rb'

Run the application

bin/rails webpacker:compile
bundle exec rails s

About routes

  • root resolves to Danish
  • /dk resolves to Danish
  • /se resolves to Swedish

🇩🇰

A vittighed, der opstod fra en tilfældig navn valgt til et andet program af mine fra Heroku.

Krævede miljøvariabler

  • BING_CLIENT
  • BING_KEY
  • BING_SECRET
  • FACEBOOK_APP_ID
  • FACEBOOK_API_VERSION

Bing søgning

Denne applikation afhænger Bing Search API for billeddata. Den Bing Search API tilbyder mange forskellige planer, hvoraf det ene giver 5.000 transaktioner/måned til 0 kroner.

Du skal sætte BING_KEY miljøvariablen som kode referencer ENV['BING_KEY'] .

I et forsøg på at bevare opkald og krone, er halvtreds billeder, cached efter serveren startes/genstartes.

Bing oversætte

På grund af hyppige runtime API fejl (og fordi værdierne er statisk) Jeg har oversat de citater bruger lib/bing_translate.rb og opbevaret værdierne i konstant.

Hvis du ønsker at bruge den Bing Translate API (igen, ikke kræves på runtime) sat BING_CLIENT og BING_SECRET miljøvariabler som scriptet refererer ENV['BING_CLIENT'], ENV['BING_SECRET']

Facebook Login

  1. Opret en ansøgning i Facebook
  2. Initialiser miljøvariabler FACEBOOK_APP_ID og FACEBOOK_VERSION_ID

Ofte stillede spørgsmål

Du ved, at erstatte »a« og »o« med og »å« og »ø« er forkert og almindelig dum, ikke?

Ja, jeg forstår, at der er forskellige bogstaver. Nej, du behøver ikke at kunne lide det.

Det er en del af joke. Tilgiv mig.

Hvor er de citater fra?

IMDB: http://www.imdb.com/character/ch0000002/quotes.

Hvordan kan jeg bidrage til projektet?

Bord det, gøre dine mods, og indsende en pull anmodning.


🇸🇪

Kommer snart!

You can’t perform that action at this time.