Skip to content

Instantly share code, notes, and snippets.

@syhily
syhily / download_talebook.sh
Last active June 4, 2024 11:57
Download all the books from a talebook website. The https://curl.se/ and https://stedolan.github.io/jq/ are required for using this script.
#!/usr/bin/env bash
# Download metadata, modify these as your needs.
## The directory to save the downloaded files.
download_directory="/volume1/Download/EPUB"
## The website you want to visit.
calibre_site="http://soulseeker.myds.me:25788"
## The formats you want to download. We only download the first present format.
## All the formats should be upper case.
allow_formats=( EPUB MOBI AZW3 )
@Umity
Umity / CIFilter+Extension.swift
Created August 30, 2018 21:26 — forked from ha1f/CIFilter+Extension.swift
CIFilter+Extension.swift
//
// Created by はるふ on 2017/12/11.
// Copyright © 2017年 ha1f. All rights reserved.
//
import Foundation
import CoreImage
import AVFoundation
extension CIFilter {
@miguelmota
miguelmota / .babelrc
Created March 14, 2017 02:25
Cycle.js webpack + babel config
{
"presets": [
"es2015"
],
"plugins": [
"syntax-jsx",
["transform-react-jsx", {"pragma": "html"}],
"transform-function-bind",
["babel-root-import", {
"rootPathSuffix": "client/"
@Ionaru
Ionaru / count-up.ts
Created December 13, 2016 15:43
countUp.js as a TypeScript class
/*
countUp.js
Created by @inorganik
Modified for TypeScript by @Ionaru
*/
export interface CountUpOptions {
// All options are optional
useEasing?: boolean; // Whether to use easing or not, default: true
@redoPop
redoPop / .gitignore
Created June 18, 2010 22:08
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your