Skip to content

Instantly share code, notes, and snippets.

View Tokenyet's full-sized avatar

Tokenyet Tokenyet

View GitHub Profile
@Tokenyet
Tokenyet / gist:5edaa878945c1d3f638122ef945e715c
Created June 14, 2022 09:20
Combine jpg into one pdf using magick
# For combining the specified jpgs to pdf.
magick convert edu_imga.jpg edu_imgb.jpg -auto-orient educations.pdf
# For combining all jpgs to pdf.
magick convert *.jpg -auto-orient educations.pdf
// ==UserScript==
// @name Youtube Control Visible Switch
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Use ctrl to hide and show ui! Also shift works, but without subtitle!
// @author You
// @match https://*.youtube.com/*
// @icon https://www.gstatic.com/youtube/img/branding/youtubelogo/svg/youtubelogo.svg
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @homepage https://gist.github.com/Tokenyet/e1389eb2620031dc0885b2857071d904
@Tokenyet
Tokenyet / gist:5e9bb507096819b4da69c551efd0ef8f
Last active May 13, 2019 09:49
Error about generic in flutter
typedef bool GeneticFunction<T>(T geneticData, String key);
class CoolType {}
class Component<T> extends StatefulWidget {
Component({this.data, this.geneticFunc});
final T data;
final GeneticFunction<T> geneticFunc;
void test()