Skip to content

Instantly share code, notes, and snippets.

🔮
M A G I C

netop://ウエハ NetOperatorWibby

🔮
M A G I C
Block or report user

Report or block NetOperatorWibby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NetOperatorWibby
NetOperatorWibby / access.svelte
Last active Aug 17, 2019
Sapper session handling (creation and updating). Idk if this is the best way of doing things but at least it *works*. Feel free to scrutinize this code and let me know all the ways it sucks.
View access.svelte
<script>
// import
import { onMount } from "svelte";
// util
import { metadata } from "~util";
// redirect
onMount(() => {
// `location.replace` forces a hard refresh in the browser,
View genesis_public_key
04fee87dde12e9980ebd84f2827ba18cc5dc4d1a8b127f6937c2707f0f7f7faa742fb5da9c9fa9a59927f60962fb689769afaa836ce6d73634b8fca4c44c4211b9
View gist:f682f7120c0988f78f9fa4d48f9d7ead
### 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:
@NetOperatorWibby
NetOperatorWibby / nodejs-tcp-example.js
Created Mar 10, 2018 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
View nodejs-tcp-example.js
/*
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');
@NetOperatorWibby
NetOperatorWibby / spacy_intro.ipynb
Created Feb 21, 2018 — 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/
View spacy_intro.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View better-nodejs-require-paths.md

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

@NetOperatorWibby
NetOperatorWibby / pagination.ts
Created Feb 15, 2018 — forked from mattmazzola/pagination.ts
GraphQL Pagination Implementation
View pagination.ts
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 }
})
@NetOperatorWibby
NetOperatorWibby / py3whois.py
Created Feb 9, 2018 — forked from carmaa/py3whois.py
Python 3 whois client
View py3whois.py
"""
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
@NetOperatorWibby
NetOperatorWibby / Slimdown.md
Created Feb 6, 2018 — forked from jbroadway/Slimdown.md
Slimdown - A simple regex-based Markdown parser.
View Slimdown.md

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
@NetOperatorWibby
NetOperatorWibby / example.js
Created Jan 29, 2018 — forked from fson/example.js
Recursive GraphQL demo
View example.js
import { inspect } from 'util';
import {
graphql,
GraphQLEnumType,
GraphQLID,
GraphQLInterfaceType,
GraphQLObjectType,
GraphQLList,
GraphQLNonNull,
GraphQLSchema,
You can’t perform that action at this time.