Skip to content

Instantly share code, notes, and snippets.

View iT-Boyer's full-sized avatar
🎯
Focusing

布衣男儿 iT-Boyer

🎯
Focusing
View GitHub Profile
@iT-Boyer
iT-Boyer / .emacs
Created December 27, 2023 21:33 — forked from amygrinn/.emacs
Autoshare -> Tasker -> Termux -> Org Protocol -> Org Capture
;; Required setup for emacs init file
(package-initialize)
(require 'org)
(require 'org-protocol)
;; Set 'my-org-directory' to the base directory of all of
;; your org files (with a trailing slash). For me it's:
(setq my-org-directory "/scp:org:/home/orgmode/")
;; But it could be a local directory for you
@iT-Boyer
iT-Boyer / prayer-times.js
Created March 5, 2023 08:35 — forked from supermamon/prayer-times.js
Prayer times from jamemasjid.co.uk
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: pray;
/* **********************************************
by : @supermamon
on : 16 Oct 2021
ver: 1.0.0
for: https://www.reddit.com/r/Scriptable/comments/q8r061/make_widget_table_from_data_scraped_from_website/
********************************************** */
caf00ac49011e37f307503307408cfc8 01/28/21 20:18 private
d17ccddc630992c87d66f4b8f1d96f06 01/28/21 20:07 public
4938331650b6cf0ce7a94a0d6717fd5f 11/25/20 11:35 private description
037dae2568083ab417551050482d83a2 06/14/19 08:32 public
9acada44ffa1c7faad114c4f39f50634 05/28/19 07:57 public
74955febbbddf2d7c82dba84a8609275 05/28/19 07:47 public
45e609bae8aa48dc9abe9836da32b62d 02/27/19 06:43 private
+ c0d87bc77f11dde7ac601fb2d34b547e 02/08/17 10:48 public shell命令
+ 902b8411a8cd6bc52859d9d130855f85 12/04/16 16:58 public The introduction to Reactive Programming you've been missing
760d3a9045ac107a722a6e16746b16dc 04/21/16 15:51 public scrollView API
#pragma mark  ----  UITextViewDelegate
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{
    // 根据字符数量显示或者隐藏 `placeholderLabel`
    if (textView.text.length > 0 && [text isEqualToString:@"\n"] == YES) {
        [textView resignFirstResponder];
        return NO;
    }
    //九宫格输入码误判为表情,处理
    if ([text isEqualToString:@""] || [text isEqualToString:@""] || [text isEqualToString:@""] || [text isEqualToString:@""] || [text isEqualToString:@""] || [text isEqualToString:@""] || [text isEqualToString:@""] || [text isEqualToString:@""]) {
title date updated comments
定制开源的CLImageEditor图片编辑工具
2019-06-13 22:19:57 +0800
2019-06-13 22:19:57 +0800
true

定制图片编辑器

关于Other Link Flag的有关说明

other link 添加-ObjC
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## This is an application.
## The date format used by logging formatters for %(asctime)s
#c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S'
@iT-Boyer
iT-Boyer / ln替身制作
Last active February 8, 2017 07:37
shell命令
指令名称:ln
使用权限:所有使用者
使用方式:ln[options]sourcedist其中option的格式为:
[bdfinsvF][Sbackupsuffix][V{numberedexistingsimple}]
[help][version][]
说明:Linux/Unix档案系统中有所谓的链接(link)我们可以将其视为档案的别名
链接可分为两种:硬链接(hardlink)与软链接(symboliclink)
硬链接的意思是一个档案可以有多个名称而软链接的方式则是产生一个特殊的档案该档案的内容是指向另一个档案的位置
硬链接是存在同一个档案系统中而软连结却可以跨越不同的档案系统
lnsourcedist是产生一个连结(dist)到source至于使用硬连结或软链结则由参数决定
NSAttributedString *attrString; // from previous code
NSDictionary *options = @{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType};
NSData *htmlData = [attrString dataFromRange:NSMakeRange(0, [attrString length]) documentAttributes:options error:nil];
NSString *htmlString = [[NSString alloc] initWithData:htmlData encoding:NSUTF8StringEncoding];
@iT-Boyer
iT-Boyer / introrx.md
Created December 4, 2016 08:58 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing