From fbf38f8205c83cf5a403f688e94bcabceea77ee8 Mon Sep 17 00:00:00 2001 From: "saintway @ Andrews-MacBook-Pro" Date: Thu, 28 Nov 2024 21:55:32 +0900 Subject: [PATCH] Site updated: 2024-11-28 21:55:32 --- 2022/02/28/Add-Tweets-to-My-Blog/index.html | 450 ------ .../index.html | 28 +- 2024/11/25/Color-Me-Beautiful-0000/index.html | 223 +++ 2024/11/27/Color-Me-Beautiful-0001/index.html | 746 ++++++++++ 2024/11/27/Color-Me-Beautiful-0002/index.html | 354 +++++ 2024/11/27/Color-Me-Beautiful-0003/index.html | 320 ++++ 2024/11/27/Color-Me-Beautiful-0004/index.html | 317 ++++ 2024/11/27/Color-Me-Beautiful-0005/index.html | 382 +++++ 2024/11/27/Color-Me-Beautiful-0006/index.html | 281 ++++ 2024/11/28/Color-Me-Beautiful-0007/index.html | 290 ++++ 2024/11/28/Color-Me-Beautiful-0008/index.html | 292 ++++ 2024/11/28/Color-Me-Beautiful-0009/index.html | 289 ++++ 2024/11/28/Color-Me-Beautiful-0010/index.html | 258 ++++ 2024/11/28/Color-Me-Beautiful-0011/index.html | 260 ++++ 2024/11/28/Color-Me-Beautiful-0012/index.html | 246 ++++ 2024/11/28/Color-Me-Beautiful-0013/index.html | 279 ++++ 2024/11/28/Color-Me-Beautiful-0014/index.html | 268 ++++ 2024/11/28/Color-Me-Beautiful-0015/index.html | 322 ++++ 2024/11/28/Color-Me-Beautiful-0016/index.html | 294 ++++ 2024/11/28/Color-Me-Beautiful-0017/index.html | 313 ++++ 2024/11/28/Color-Me-Beautiful-0018/index.html | 279 ++++ 2024/11/28/Color-Me-Beautiful-0019/index.html | 312 ++++ 2024/11/28/Color-Me-Beautiful-0020/index.html | 271 ++++ 2024/11/28/Color-Me-Beautiful-0021/index.html | 284 ++++ 2024/11/28/Color-Me-Beautiful-0022/index.html | 238 +++ 2024/11/28/Color-Me-Beautiful-0023/index.html | 260 ++++ 2024/11/28/Color-Me-Beautiful-0024/index.html | 306 ++++ 2024/11/28/Color-Me-Beautiful-0025/index.html | 292 ++++ 2024/11/28/Color-Me-Beautiful-0026/index.html | 317 ++++ 2024/11/28/Color-Me-Beautiful-0027/index.html | 222 +++ 2024/11/28/Color-Me-Beautiful-0028/index.html | 229 +++ 2024/11/28/Color-Me-Beautiful-0029/index.html | 241 +++ 2024/11/28/Color-Me-Beautiful-0030/index.html | 278 ++++ 2024/11/28/Color-Me-Beautiful-0031/index.html | 287 ++++ 2024/11/28/Color-Me-Beautiful-0032/index.html | 266 ++++ 2024/11/28/Color-Me-Beautiful-0033/index.html | 295 ++++ 2024/11/28/Color-Me-Beautiful-0034/index.html | 263 ++++ 2024/11/28/Color-Me-Beautiful-0035/index.html | 224 +++ 2024/11/28/Color-Me-Beautiful-0036/index.html | 241 +++ 2024/11/28/Color-Me-Beautiful-0037/index.html | 271 ++++ 2024/11/28/Color-Me-Beautiful-0038/index.html | 337 +++++ 2024/11/28/Color-Me-Beautiful-0039/index.html | 302 ++++ 2024/11/28/Color-Me-Beautiful-0040/index.html | 370 +++++ 2024/11/28/Color-Me-Beautiful-0041/index.html | 360 +++++ 2024/11/28/Color-Me-Beautiful-0042/index.html | 308 ++++ 2024/11/28/Color-Me-Beautiful-0043/index.html | 224 +++ about/index.html | 16 +- archives/2022/02/index.html | 439 +++++- archives/2022/index.html | 439 +++++- archives/2024/11/index.html | 675 +++++++++ archives/2024/11/page/2/index.html | 675 +++++++++ archives/2024/11/page/3/index.html | 675 +++++++++ archives/2024/11/page/4/index.html | 675 +++++++++ archives/2024/11/page/5/index.html | 675 +++++++++ archives/2024/index.html | 675 +++++++++ archives/2024/page/2/index.html | 675 +++++++++ archives/2024/page/3/index.html | 675 +++++++++ archives/2024/page/4/index.html | 675 +++++++++ archives/2024/page/5/index.html | 675 +++++++++ archives/index.html | 437 +++++- archives/page/2/index.html | 675 +++++++++ archives/page/3/index.html | 675 +++++++++ archives/page/4/index.html | 675 +++++++++ archives/page/5/index.html | 675 +++++++++ categories/index.html | 34 +- index.html | 1113 +++++++++++--- page/2/index.html | 1097 ++++++++++++++ page/3/index.html | 1162 +++++++++++++++ page/4/index.html | 1301 +++++++++++++++++ page/5/index.html | 1204 +++++++++++++++ tags/Color/index.html | 352 +++++ tags/Color/page/2/index.html | 352 +++++ tags/Color/page/3/index.html | 352 +++++ tags/Color/page/4/index.html | 352 +++++ tags/{Notebooks => Color/page/5}/index.html | 73 +- tags/Typography/index.html | 32 +- tags/index.html | 722 ++++++++- 77 files changed, 31598 insertions(+), 818 deletions(-) delete mode 100644 2022/02/28/Add-Tweets-to-My-Blog/index.html create mode 100644 2024/11/25/Color-Me-Beautiful-0000/index.html create mode 100644 2024/11/27/Color-Me-Beautiful-0001/index.html create mode 100644 2024/11/27/Color-Me-Beautiful-0002/index.html create mode 100644 2024/11/27/Color-Me-Beautiful-0003/index.html create mode 100644 2024/11/27/Color-Me-Beautiful-0004/index.html create mode 100644 2024/11/27/Color-Me-Beautiful-0005/index.html create mode 100644 2024/11/27/Color-Me-Beautiful-0006/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0007/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0008/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0009/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0010/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0011/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0012/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0013/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0014/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0015/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0016/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0017/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0018/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0019/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0020/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0021/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0022/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0023/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0024/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0025/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0026/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0027/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0028/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0029/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0030/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0031/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0032/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0033/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0034/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0035/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0036/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0037/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0038/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0039/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0040/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0041/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0042/index.html create mode 100644 2024/11/28/Color-Me-Beautiful-0043/index.html create mode 100644 archives/2024/11/index.html create mode 100644 archives/2024/11/page/2/index.html create mode 100644 archives/2024/11/page/3/index.html create mode 100644 archives/2024/11/page/4/index.html create mode 100644 archives/2024/11/page/5/index.html create mode 100644 archives/2024/index.html create mode 100644 archives/2024/page/2/index.html create mode 100644 archives/2024/page/3/index.html create mode 100644 archives/2024/page/4/index.html create mode 100644 archives/2024/page/5/index.html create mode 100644 archives/page/2/index.html create mode 100644 archives/page/3/index.html create mode 100644 archives/page/4/index.html create mode 100644 archives/page/5/index.html create mode 100644 page/2/index.html create mode 100644 page/3/index.html create mode 100644 page/4/index.html create mode 100644 page/5/index.html create mode 100644 tags/Color/index.html create mode 100644 tags/Color/page/2/index.html create mode 100644 tags/Color/page/3/index.html create mode 100644 tags/Color/page/4/index.html rename tags/{Notebooks => Color/page/5}/index.html (72%) diff --git a/2022/02/28/Add-Tweets-to-My-Blog/index.html b/2022/02/28/Add-Tweets-to-My-Blog/index.html deleted file mode 100644 index f8770c5..0000000 --- a/2022/02/28/Add-Tweets-to-My-Blog/index.html +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - Add Tweets to Home Page | Charis - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- - - - - - - - - -
- - -
- - - - - -
-
-
-
-

Browser Side

-
-
-
-
-
-
In [ ]:
-
-
-
cat << EOF > ~/digitypography/themes/freemind/source/js/twitter.js
-var twitter = (function() {
-  function escapeHtml(str) {
-    return \$('<div/>').text(str).html();
-  }
-  function render(target, tweets) {
-    var i = 0, fragment = '', t = \$(target)[0];
-
-    for(i = 0; i < tweets.length; ++i) {
-      fragment += '<li><i class="fa fa-star"></i><a href="https://twitter.com/charisbit/status/' + tweets[i].id + '">'
-          + tweets[i].created_at.replace('T', ' ').replace('.000Z', ' UTC') + '</a><p>' + escapeHtml(tweets[i].text||'') + '</p></li>';
-    }
-    t.innerHTML = fragment;
-  }
-  return {
-    showTweets: function(options) {
-      options.blacklist = options.blacklist.split(',');
-      \$.ajax({
-          url: 'https://jhub.name/typography/?tweet.fields=created_at&max_results=' + options.count
-        , dataType: 'json'
-        , error: function (err) { \$(options.target + ' li.loading').addClass('error').text('Error loading feed'); }
-        , success: function (data) {
-          if (!data ) { return; }
-          var tweets = [];
-          for (var i = 0; i < data.data.length; ++i) {
-            if (options.blacklist instanceof Array && options.blacklist.indexOf(data.data[i].id) !== -1) { continue; }
-            tweets.push(data.data[i]);
-          }
-          render(options.target, tweets);
-        }
-      });
-    }
-  };
-})();
-EOF
-
- -
-
-
- -
-
-
-
-

Server Side

-
-
-
- -
-
-
In [ ]:
-
-
-
curl -H "Authorization: Bearer ${BEARER_TOKEN}" 'https://api.twitter.com/2/users/by/username/charisbit?user.fields=created_at'
-
- -
-
-
- -
-
- - -
- -
- - -
-
{"data":{"name":"Charis","username":"charisbit","created_at":"2022-02-28T13:05:23.000Z","id":"1498283136295211010"}}
-
-
- -
-
- -
- -
-
-
In [ ]:
-
-
-
curl -H "Authorization: Bearer ${BEARER_TOKEN}" 'https://api.twitter.com/2/users/1498283136295211010/tweets?tweet.fields=created_at&max_results=10'
-
- -
-
-
- -
-
- - -
- -
- - -
-
{"meta":{"result_count":0}}
-
-
- -
-
- -
-
-
-
-
    -
  • My solution using Traefik to proxy Tweets API
  • -
- -
-
-
-
-
-
In [ ]:
-
-
-
cat << EOF | sudo tee /opt/tljh/state/dynamic/typography.toml > /dev/null
-
-[frontends.typography]
-backend = "typography"
-
-[frontends.typography.routes.r1]
-rule = "PathPrefix:/typography/"
-
-[frontends.typography.routes.r2]
-rule = "ReplacePath:/2/users/1498283136295211010/tweets"
-
-[frontends.typography.headers.customrequestheaders]
-Authorization = "Bearer ${BEARER_TOKEN}"
-
-[frontends.typography.headers.customresponseheaders]
-Access-Control-Allow-Origin = "*"
-
-[backends.typography.servers.s1]
-url = "https://api.twitter.com"
-weight = 1
-
-EOF
-
- -
-
-
- -
-
-
-
In [ ]:
-
-
-
sudo systemctl restart traefik
-
- -
-
-
- -
-
-
-
In [ ]:
-
-
-
curl 'https://jhub.name/typography/?tweet.fields=created_at&max_results=10'
-
- -
-
-
- -
-
- - -
- -
- - -
-
{"data":[{"created_at":"2022-02-28T14:15:00.000Z","id":"1498300708893835264","text":"$GoodBit is designed to measure the meaningfulness for bits. The average $GoodBit of each bit of contents of NFTs of corresponding Copy and Quote License Tokens is stabilized at 1 $GoodBit, so that 1 $GoodBit can be used to pay for copying and quoting 1 bit on average."}],"meta":{"oldest_id":"1498300708893835264","newest_id":"1498300708893835264","result_count":1}}
-
-
- -
-
- -
- - - - - -
- -
-
- - -
-
- - - -
-

留言

- - -
- -
- - -
- - -
- - - -
- - 2022-02-28 -
- - - - - - - -
- - -
- - - -
- -
- -
- -
- - - -
- -
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - diff --git a/2022/02/28/An-Independent-Stablecoin-of-Cyberspace/index.html b/2022/02/28/An-Independent-Stablecoin-of-Cyberspace/index.html index 0a067f0..eac66c9 100644 --- a/2022/02/28/An-Independent-Stablecoin-of-Cyberspace/index.html +++ b/2022/02/28/An-Independent-Stablecoin-of-Cyberspace/index.html @@ -1,6 +1,6 @@ - + An Independent Stablecoin of Cyberspace | Charis @@ -11,11 +11,11 @@ - - + + - + @@ -38,8 +38,8 @@ - - + +