Skip to content

Instantly share code, notes, and snippets.


Matthaus Woolard hishnash

View GitHub Profile
View ThreadSafeReferenceDecoder.swift
var connectionRef: ThreadSafeReference<NetworkConnection>? = nil
var connection: NetworkConnection? {
get {
guard let ref = self.connectionRef else {
return nil
defer {
View Swift4 crash log
CompileSwift normal arm64 /Users/matthaus/learning/Sockets/Sockets/Models/realm/Frame.swift
cd /Users/matthaus/learning/Sockets
/Applications/ -frontend -c /Users/matthaus/learning/Sockets/Sockets/Models/document/WSFrame+CoreDataClass.swift /Users/matthaus/learning/Sockets/Sockets/Models/document/Body+CoreDataProperties.swift /Users/matthaus/learning/Sockets/Sockets/Models/document/HTTPRequest+CoreDataClass.swift /Users/matthaus/learning/Sockets/Sockets/Networking/WSConnection.swift /Users/matthaus/learning/Sockets/Sockets/Models/document/HTTPRequest+CoreDataProperties.swift /Users/matthaus/learning/Sockets/Sockets/Models/document/HTTPHeader+CoreDataProperties.swift /Users/matthaus/learning/Sockets/Sockets/Models/document/HTTPHeader+CoreDataClass.swift /Users/matthaus/learning/Sockets/Sockets/Models/document/Connection+CoreDataProperties.swift /Users/matthaus/learning/Sockets/Sockets/Models/realm/NetworkConnection.swift
View blog.rst

Documentation Engine Demo

This is a demo of how our documentation engine to see the real Paw docs go to Paw Docs

.. bc::
    :noindex: true

    * Paw Docs Engine demo
View Node.js
import React, { Component } from 'react'
import { getComponent } from './helper'
// This function is used to lookup a Compment
// given a python module.class key
export default class Node extends Component {
static propTypes = {
attributes: React.PropTypes.object.isRequired,
children: React.PropTypes.array,
View BulletList.js
// Example of a simple Node Component
export default class BulletList extends Node {
static childContextTypes = {
isInList: React.PropTypes.bool
getChildContext() {
return { isInList: true }
View part_of_the_json_ast.json
"module": "docutils.nodes",
"type": "literal_block",
"children": [
"module": "docutils.nodes",
"type": "Text",
"children": [],
"attributes": {
"text": "function evaluate(context){\n var dv = new DynamicValue('com.luckymarmot.URLEncodingDynamicValue', {\n 'input': 'Something to be URL-encoded'\n });\n return dv.getEvaluatedString();\n};"
View mappings_exmple.js
'docutils.nodes.section': Section,
'docutils.nodes.paragraph': Paragraph,
'docutils.nodes.Text': Text,
'docutils.nodes.title': Title,
'docutils.nodes.compound': Compound,
'sphinx.addnodes.compact_paragraph': Paragraph,
'docutils.nodes.bullet_list': BulletList,
'docutils.nodes.definition_list': DefinitionList,
'docutils.nodes.enumerated_list': EnumeratedList,
This is an example gist combining a few different source files from our build
licensed to be under MIT
copywrite: Matthaus Woolard 2016
import json
import os
class TabSection(Directive):
has_content = True # this directive can have children
required_arguments = 1 # has 1 arg
optional_arguments = 0
# add a kwarg `keyworks` these are used for search
option_spec = {'keywords': directives.unchanged}
# we need a new line after the args before the child content
final_argument_whitespace = True
View url_encoding.rst
.. dv:: URL Encoding
    :keywords: url-encoding

    .. dvvis:: Visual

        .. figure:: /Images/encoding_crypto/URLEncodingDynamicValue.png

            A `Percent-encoding <>`_ converter conforming to `RFC3986 <>`_.

    .. dvspec:: Code
You can’t perform that action at this time.