A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
- Emphasis
- Deletions
""" | |
Whois client for python | |
transliteration of: | |
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c | |
Copyright (c) 2010 Chris Wolf | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |
var graphql = require('graphql'); | |
export function Edge(itemType: any) { | |
return new graphql.GraphQLObjectType({ | |
name: "Edge", | |
description: "Generic edge to allow cursors", | |
fields: () => ({ | |
node: { type: itemType }, | |
cursor: { type: graphql.GraphQLString } | |
}) |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 100%; | |
margin: 0; | |
width: 100%; | |
overflow: hidden; | |
} |
declare module '*.graphql' { | |
import { DocumentNode } from 'graphql' | |
const Schema: DocumentNode | |
export = Schema | |
} |
# conf.d file for git-daemon | |
# | |
# Please check man 1 git-daemon for more information about the options | |
# git-daemon accepts. You MUST edit this to include your repositories you wish | |
# to serve. | |
# | |
# Some of the meaningful options are: | |
# --syslog --- Enables syslog logging | |
# --verbose --- Enables verbose logging | |
# --export-all --- Exports all repositories |