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 | |
/// war cant of mars | |
// Assuming MSB first | |
let cant = | |
""" | |
0111011101100001011100100111011 | |
010011010110100101101110011001000010000001110010011001010110001101100101011100000111010001101111011100100111001100100000011101110110100101110100011011100110010101110011011100110010000001100111011011000110111101110010011110010010000001100110011100100110111101101101001000000111010001101000011001010010000001100010011101010111001001101110011010010110111001100111001000000110111101100110001000000111010001101000011001010010000001100110011011000110000101101101011001010000101001010100011010000110010100100000011001100110100101110010011001010111001100100000011011110110011000100000011101000110100001100101001000000110011001101111011100100110011101100101001000000110000101110010011001010010000001101100011010010110101101100101001000000111010001101000011001010010000001110100011100100111010101101101011100000110010101110100011100110010000001110111011010000110100101100011011010000010000001110000011100100110111101100011011 |
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
but you don't | |
jimmyToday at 9:29 AM | |
yeah | |
having more type weirdness | |
ive got a dict keyed with enum types and its values are my filter functions | |
their sig is (Meme) -> Bool | |
when i try say | |
let fieldFilters = [Meme.SearchableFields.text: memeTextFilter, | |
Meme.SearchableFields.keywords: memeKeywordsFilter] | |
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
// | |
// ViewController.swift | |
// Ghostnote2 | |
// | |
// Created by Jimmy Hough Jr on 11/14/17. | |
// Copyright © 2017 Jimmy Hough Jr. All rights reserved. | |
// | |
class Menus { | |
static func themeMenu() -> NSMenu { |
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
func show() { | |
SwiftyBeaver.info("show") | |
restoreCollapsedState() | |
restoreAttachedState() | |
orderFrontRegardless() | |
if let cont = contentViewController as? NSTabViewController { | |
SwiftyBeaver.info("\(cont.isViewLoaded)") | |
if let ctx = cont.tabViewItems[0].viewController as? ContextViewController { |
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
Parse.serverURL = 'http://178.128.153.185:1337/parse' | |
Parse.initialize("tracktivityserver"); | |
function HighLightTR(el, backColor,textColor){ | |
if(typeof(preEl)!='undefined') { | |
preEl.bgColor=orgBColor; | |
try{ChangeTextColor(preEl,orgTColor);}catch(e){;} | |
} | |
orgBColor = el.bgColor; | |
orgTColor = el.style.color; |
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 FileKit | |
/* | |
... | |
*/ | |
func docNoteRTFData(for docID:String, | |
inApp bundleID:String) -> String { | |
SwiftyBeaver.debug("docID is \(docID)") |
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
func docNoteRTFData(for docID:String, | |
inApp bundleID:String) -> String { | |
SwiftyBeaver.debug("docID is \(docID)") | |
if bundleID != "com.apple.finder" { | |
do { | |
let a = ghostnotesPath() | |
SwiftyBeaver.debug("Trying \(a)") | |
return try TextFile(path: a ).read() |
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
const RtfToDeltaConverter = require('@kenyog/rtf-to-quill-delta'); | |
module.exports.getDelta = async function(rtf) { | |
let converter = new RtfToDeltaConverter(); | |
let delta = await converter.convert(rtf); | |
let ops = delta["ops"]; | |
return ops; | |
}; | |
require('make-runnable/custom')({ | |
printOutputFrame: false |
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
--- Miniterm on /dev/cu.SLAB_USBtoUART 115200,8,N,1 --- | |
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- | |
[W][WiFiGeneric.cpp:360] _eventCallback(): Reason: 201 - NO_AP_FOUND | |
Got Event: 5 | |
Reason: 201 | |
[W][WiFiGeneric.cpp:360] _eventCallback(): Reason: 201 - NO_AP_FOUND | |
Got Event: 5 | |
Reason: 201 | |
[W][WiFiGeneric.cpp:360] _eventCallback(): Reason: 201 - NO_AP_FOUND | |
Got Event: 5 |
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
--- Miniterm on /dev/cu.SLAB_USBtoUART 115200,8,N,1 --- | |
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- | |
ets Jun 8 2016 00:22:57 | |
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) | |
configsip: 0, SPIWP:0xee | |
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 | |
mode:DIO, clock div:2 | |
load:0x3fff0018,len:4 | |
load:0x3fff001c,len:952 |
NewerOlder