I hereby claim:
- I am coxley on github.
- I am codey (https://keybase.io/codey) on keybase.
- I have a public key ASAdPlQ6Amw-Cm_WrqBP9Qoe15zwQanYo__bBTTwlMAMHQo
To claim this, I am signing this object:
#!/bin/bash | |
# Adapted from a puppet pre-commit hook at: | |
# http://blog.snijders-it.nl/2011/12/example-puppet-27-git-pre-commit-script.html | |
# | |
# install this as .git/hooks/pre-commit to check DNS zone files | |
# for errors before committing changes. | |
rc=0 | |
description "dyndnsd" | |
author "[email protected]" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 15 5 | |
exec /usr/local/bin/dyndnsd /opt/dyndnsd/config.yaml | |
# vim: set ft=upstart: |
I hereby claim:
To claim this, I am signing this object:
def plain_to_dot(asn): # -> str | |
'''Take ASPLAIN and return ASDOT notation | |
asn: int | |
''' | |
barray = struct.pack('>I', asn) | |
return '%d.%d' % struct.unpack('>HH', barray) | |
def dot_to_plain(asn): # -> int |
#!/bin/env python | |
def toggle_comment(lines, filename, startswith=False): | |
'''Toggle comment on lines in filename | |
Options: | |
lines (list): lines to comment. | |
filename (str): filname | |
startswith (bool): allows providing start of a line vs exact matching |
import asyncio | |
import logging | |
import time | |
import threading | |
import typing as t | |
import janus | |
LOG = logging.getLogger(__name__) |
import asyncio | |
import logging | |
import time | |
import threading | |
import typing as t | |
import janus | |
LOG = logging.getLogger(__name__) |
import time | |
import asyncio | |
def blocking(): | |
time.sleep(5) | |
print("hell yeah") | |
async def main(): |
// Problem: https://leetcode.com/problems/number-of-islands/ | |
// ASCII byte reference | |
// 48 = "0" | |
// 49 = "1" | |
// 120 = "x" | |
package main | |
import "fmt" | |
func findBounds(input [][]byte, row, col int) int { |