A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
- Emphasis
- Deletions
| // Load the TCP Library | |
| net = require('net'); | |
| // Keep track of the chat clients | |
| var clients = []; | |
| // Start a TCP Server | |
| net.createServer(function (socket) { | |
| // Identify this client |
| #!/bin/bash | |
| # This script allows you to chroot ("work on") | |
| # the raspbian sd card as if it's the raspberry pi | |
| # on your Ubuntu desktop/laptop | |
| # just much faster and more convenient | |
| # make sure you have issued | |
| # (sudo) apt install qemu qemu-user-static binfmt-support |
| import { inspect } from 'util'; | |
| import { | |
| graphql, | |
| GraphQLEnumType, | |
| GraphQLID, | |
| GraphQLInterfaceType, | |
| GraphQLObjectType, | |
| GraphQLList, | |
| GraphQLNonNull, | |
| GraphQLSchema, |
| """ | |
| 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'); |
| ### Keybase proof | |
| I hereby claim: | |
| * I am netoperatorwibby on github. | |
| * I am netopwibby (https://keybase.io/netopwibby) on keybase. | |
| * I have a public key whose fingerprint is 4B05 7A94 358E FFA9 7AA4 7E8E FF55 C87C EE32 D395 | |
| To claim this, I am signing this object: |