Skip to content

Instantly share code, notes, and snippets.

View ciaranchen's full-sized avatar
🍀

ciaran ciaranchen

🍀
View GitHub Profile
@ciaranchen
ciaranchen / Markdown ZotSelect.js
Created December 5, 2023 09:11
Markdown ZotSelect
{
"translatorID": "2de2b1a5-5725-494c-9224-5781cdf9b7ef",
"label": "Markdown ZotSelect",
"creator": "ciaranchen",
"target": "md",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 2,
@ciaranchen
ciaranchen / json_filter.py
Last active March 2, 2022 14:22
json filter
import json, os
import requests
# https://lod-cloud.net/versions/2021-05-05/lod-data.json
json_path = './lod.json'
class JsonFilter(object):
def __init__(self, operator, threshold):
self.operator = operator
@ciaranchen
ciaranchen / README.md
Created August 4, 2021 10:55
小鹤双拼-pypinyin

利用pypinyin库,列出一段文字用小鹤打字需要敲击的按键。

@ciaranchen
ciaranchen / gol.ipynb
Created June 27, 2021 06:51
Game Of Life
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ciaranchen
ciaranchen / 50370.0.txt
Created June 23, 2021 11:05
TIS-100 Code (2)
@0
@1
@2
@3
@ciaranchen
ciaranchen / 00150.0.txt
Created June 23, 2021 11:04
TIS-100 Code (1)
@0
MOV ANY, DOWN
@1
MOV RIGHT, DOWN
@2
MOV ANY,LEFT
@3
@ciaranchen
ciaranchen / cachelib.py
Last active December 28, 2021 03:03
cachelib
import os
import hashlib
import pickle
import csv
import json
import logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%m-%d %H:%M:%S')
logger = logging.getLogger(__name__)
@ciaranchen
ciaranchen / douban.service.ts
Created October 9, 2018 16:41
jsonp to get douabn isbn data
import { Injectable } from '@angular/core';
import {Md5} from "md5-typescript";
const remove_timeout = 20000;
@Injectable({
providedIn: 'root'
})
export class DoubanService {
private apiRoot = 'https://api.douban.com/v2/book';