-
Finish my changes Hello world
-
Finish my changes Hello world
-
Note done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
/// KillRing with macOS text text system semantics. | |
/// | |
/// Use when implementing `yank:` and `yankAndSelect:` actions. | |
/// | |
/// Learn more at http://hogbaysoftware.com/posts/mac-text-editing-mark-kill-yank/ | |
public class KillRing { | |
public static let shared = KillRing() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Combine | |
import Foundation | |
import CoreGraphics | |
protocol Store { | |
associatedtype Object | |
func insert(_ object: Object) -> Future<Object, Error> | |
func update(_ object: Object) -> Future<Object, Error> | |
func delete(_ object: Object) -> Future<Object, Error> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Originally based off https://github.com/BurntSushi/ripgrep/tree/master/ignore | |
// Use as you see fit. | |
use std::fs; | |
use std::fs::{Metadata, FileType}; | |
use std::sync::{Arc, Mutex}; | |
use std::sync::mpsc::{channel, Receiver, Sender}; | |
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering as AtomicOrdering}; | |
use std::collections::BinaryHeap; | |
use std::path::{Path, PathBuf}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demos odditly in NSTextStorage subclass deinit. | |
// | |
// 1. Profile app in Allocations Instrument | |
// 2. Notice that after starting app 3 instances of MyTextStorage remain ... even though MyTextStorage.deinit is getting called. | |
// 3. Comment out the `let _ = self` line and the problem goes away. | |
// 4. I only notice this problem in subclasses of NSTextStorage, generally `let _ = self` seems fine in an deinit | |
// | |
class MyTextStorage: NSTextStorage { | |
override init() { |
Please see birch-outline. It will parse, process, and serialize TaskPaper files for you.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var copyProperties = require('react/lib/copyProperties'), | |
Dispatcher = require('flux').Dispatcher, | |
util = require('util'); | |
function AppDispatcher() { | |
Dispatcher.call(this); | |
this._queue = []; | |
} | |
util.inherits(AppDispatcher, Dispatcher); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function (require, exports, module) { | |
'use strict'; | |
var Extensions = require('ft/core/extensions').Extensions; | |
function test(editor, options, tagName) { | |
var collapseNodes = []; | |
function fun(node) { | |
var infos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autofocus.todo | |
- item 1 | |
- item 3 | |
# Autofocus.todo | |
- item 2 |