Always start with an Update:
$ sudo apt-get update
Create folder for project:
$ mkdir production
{% comment %} | |
* | |
* Counter: This include counts your jekyll posts | |
* | |
{% endcomment %}{% assign counter = 0 %}{% for item in site.posts %}{% unless item.published == false %}{% assign counter=counter | plus:1 %}{% endunless %}{% endfor %}{{ counter }} |
<?php | |
class comment_walker extends Walker_Comment { | |
var $tree_type = 'comment'; | |
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' ); | |
// constructor – wrapper for the comments list | |
function __construct() { ?> | |
<section class="comments-list"> |
function UndoItem (perform, data) { | |
this.perform = perform; | |
this.data = data; | |
} | |
/** | |
* UndoStack: | |
* Easy undo-redo in JavaScript. | |
**/ |
The MIT License (MIT) | |
Copyright (c) James Dennes | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
// Leaflet JS - note the *className* attribute
// [...]
L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
className: 'map-tiles'
}).addTo(map);
// [...]
CREATE TABLE superbowls( | |
Date TEXT PRIMARY KEY, | |
SB TEXT, | |
Winner TEXT, | |
Winner_Pts INTEGER, | |
Loser TEXT, | |
Loser_Pts INTEGER, | |
MVP TEXT, | |
Stadium TEXT, | |
City TEXT, |
/* | |
Source: | |
https://www.kaggle.com/jacobbaruch/nba-player-of-the-week | |
*/ | |
CREATE TABLE players( | |
Player TEXT, | |
Team TEXT, | |
Conference TEXT, | |
Date TEXT, | |
Position TEXT, |
/* Source: http://www.boxofficemojo.com/alltime/world/ */ | |
CREATE TABLE topmovies( | |
Rank INTEGER, | |
Title TEXT, | |
Studio TEXT, | |
Worldwide REAL, | |
Domestic REAL, | |
DomesticPct REAL, | |
Overseas REAL, | |
OverseasPct REAL, |
/* | |
Solar system objects | |
Adapted from: http://en.wikipedia.org/wiki/List_of_Solar_System_objects_by_size | |
Collected by: https://www.khanacademy.org/profile/patrick809/programs | |
*/ | |
CREATE TABLE solar_system_objects( | |
body TEXT | |
, mean_radius NUMERIC /* km */ | |
, mean_radius_rel NUMERIC /* relative to earth */ | |
, volume NUMERIC /* 10^9 km^3 */ |