Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🔮
M A G I C

netop://ウエハ NetOpWibby

🔮
M A G I C
View GitHub Profile
@NetOpWibby
NetOpWibby / chatServer.js
Created January 21, 2018 20:24 — forked from creationix/chatServer.js
A simple TCP based chat server written in node.js
// 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
@NetOpWibby
NetOpWibby / chroot-to-pi.sh
Created January 24, 2018 15:38 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/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
@NetOpWibby
NetOpWibby / example.js
Created January 29, 2018 00:48 — forked from fson/example.js
Recursive GraphQL demo
import { inspect } from 'util';
import {
graphql,
GraphQLEnumType,
GraphQLID,
GraphQLInterfaceType,
GraphQLObjectType,
GraphQLList,
GraphQLNonNull,
GraphQLSchema,
@NetOpWibby
NetOpWibby / Slimdown.md
Created February 6, 2018 02:35 — forked from jbroadway/Slimdown.md
Slimdown - A simple regex-based Markdown parser.

Slimdown

A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
@NetOpWibby
NetOpWibby / py3whois.py
Created February 9, 2018 22:15 — forked from carmaa/py3whois.py
Python 3 whois client
"""
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
@NetOpWibby
NetOpWibby / pagination.ts
Created February 15, 2018 06:42 — forked from mattmazzola/pagination.ts
GraphQL Pagination Implementation
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 }
})
@NetOpWibby
NetOpWibby / better-nodejs-require-paths.md
Created February 15, 2018 22:17 — forked from ToanTranX/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

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.

Possible solutions

@NetOpWibby
NetOpWibby / spacy_intro.ipynb
Created February 21, 2018 14:52 — forked from aparrish/spacy_intro.ipynb
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NetOpWibby
NetOpWibby / nodejs-tcp-example.js
Created March 10, 2018 03:49 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
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: