Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Bojan Vidanovic bojanvidanovic

🎯
Focusing
Block or report user

Report or block bojanvidanovic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am bojanvidanovic on github.
  • I am bojanvidanovic (https://keybase.io/bojanvidanovic) on keybase.
  • I have a public key ASBXZMvZWkYTgy-75ZXh9BV_xT-dLpU0eIDoTezfUuSXWgo

To claim this, I am signing this object:

@bojanvidanovic
bojanvidanovic / script.js
Last active Dec 14, 2016
D3.js visualisation of Yahoo Weather forecast, full article on: https://bojan.io/blog/2016/12/yahoo-weather-forecast-visualisation-in-d3js
View script.js
// SVG dimensions
var margin = {
top: 15,
right: 15,
bottom: 20,
left: 15
};
var width = 1200 - margin.left - margin.right;
var height = 140 - margin.top - margin.bottom;
View forecast.json
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"hourly": 1
}
}
,
View gulpfile.js
var gulp = require('gulp'),
fs = require('fs'),
path = require('path'),
naturalSort = require('gulp-natural-sort'),
browserSync = require('browser-sync'),
cp = require('child_process'),
rsync = require('gulp-rsync'),
rev = require('gulp-rev'),
del = require('del'),
collect = require('gulp-rev-collector'),
View better-youtube-video-embedding-in-jekyll.md
layout title
post
Better YouTube video embedding in Jekyll

Simply include youtube.html file with URL of the video:

{% include youtube.html url="<YouTube_Video_URL_HERE>" %}

View youtube-video-thumbnails-sizes-and-formats.md

Note: YouTube is serving thumbnails from 2 servers:

  • //img.youtube.com
  • //i.ytimg.com

Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.

  • Player Background Thumbnail (480x360):

You can’t perform that action at this time.