Skip to content

Instantly share code, notes, and snippets.

:octocat:
I love GitHub!

Ovilia Ovilia

:octocat:
I love GitHub!
Block or report user

Report or block Ovilia

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
@Ovilia
Ovilia / index.html
Created Mar 12, 2020
A COVID-19 Map with ECharts and Leaflet
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css">
<script src="node_modules/echarts/dist/echarts.js"></script>
@Ovilia
Ovilia / SleepBot.js
Last active Dec 26, 2015
Analysize Sleeping Records from SleepBot
View SleepBot.js
var fs = require('fs');
// SleepBot.csv is downloaded from https://mysleepbot.com
var lines = fs.readFileSync('SleepBot.csv').toString().split('\n');
var sumToSleep = 0;
var sumToAwake = 0;
var sumSleepMin = 0;
@Ovilia
Ovilia / sortings
Created Jun 10, 2015
Sorting Algorithms
View sortings
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
//#define PRINT_RESULT
// insert sort: n * n
template <typename T>
void insertSort(int len, T* arr)
@Ovilia
Ovilia / 2014-08-04-replace-last-filter-for-jekyll-liquid-01.html
Created Aug 4, 2014
2014-08-04-replace-last-filter-for-jekyll-liquid-01
View 2014-08-04-replace-last-filter-for-jekyll-liquid-01.html
<a class="button view-source" href="https://raw.githubusercontent.com/Ovilia/blog/gh-pages/_posts/{{ page.url | append: '@' | replace: '/', '-' | remove_first: '-' | remove: '-@' }}.md" target="_blank">View Source on GitHub</a>
@Ovilia
Ovilia / 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-04.html
Created Aug 3, 2014
2014-08-03-make-your-own-social-sharing-bar-with-jekyll-04
View 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-04.html
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ page.url }}&via=OviliaZhang"></a>
@Ovilia
Ovilia / 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-03.html
Last active Aug 29, 2015
2014-08-03-make-your-own-social-sharing-bar-with-jekyll-03
View 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-03.html
{% assign tagStr = '' %}
{% capture url %}{{ site.url }}{{ page.url }}{% endcapture %}
{% if page.shortUrl != null %}
{% assign url = page.shortUrl %}
{% for tag in page.tags %}
{% capture tagStr %}{{ tagStr }},{{ tag }}{% endcapture %}
{% endfor %}
{% endif %}
<hr />
<h4>Share This Post</h4>
@Ovilia
Ovilia / 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-02
Created Aug 3, 2014
2014-08-03-make-your-own-social-sharing-bar-with-jekyll-02
View 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-02
{% capture url %}{{ site.url }}{{ page.url }}{% endcapture %}
{% if page.shortUrl != null %}
{% assign url = page.shortUrl %}
{% endif %}
@Ovilia
Ovilia / 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-01
Created Aug 3, 2014
2014-08-03-make-your-own-social-sharing-bar-with-jekyll-01
View 2014-08-03-make-your-own-social-sharing-bar-with-jekyll-01
{% assign tagStr = '' %}
{% for tag in page.tags %}
{% capture tagStr %}{{ tagStr }},{{ tag }}{% endcapture %}
{% endfor %}
View 2014-07-15-jekyll-related-posts-without-plugin
View 2014-05-18-jekyll-tag-searching
{% capture tags %}
{% for tag in site.tags %}
{{ tag[0] }}
{% endfor %}
{% endcapture %}
{% assign sortedtags = tags | split:' ' | sort %}
{% for tag in sortedtags %}
<div id="tag-{{ tag }}" class="tag-posts">
{% for post in site.posts %}
You can’t perform that action at this time.