I hereby claim:
- I am hikerpig on github.
- I am hikerpig (https://keybase.io/hikerpig) on keybase.
- I have a public key ASDARfNz6qbXyIykCZAq9RvkZrlDZjGCJt8bAeDOnPKt9Ao
To claim this, I am signing this object:
global !p | |
#! /usr/bin/env python | |
import hashlib | |
def make_change_id(): | |
fd = open("/dev/urandom", "rb") | |
buf = fd.read(80) | |
hash = hashlib.sha1() | |
hash.update(buf) |
// copy from https://stackoverflow.com/questions/9874167/how-can-i-play-audio-in-reverse-with-web-audio-api | |
var context = new AudioContext(), | |
request = new XMLHttpRequest(); | |
request.open('GET', 'path/to/audio.mp3', true); | |
request.responseType = 'arraybuffer'; | |
request.addEventListener('load', function(){ | |
context.decodeAudioData(request.response, function(buffer){ | |
var source = context.createBufferSource(); | |
Array.prototype.reverse.call( buffer.getChannelData(0) ); | |
Array.prototype.reverse.call( buffer.getChannelData(1) ); |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# thanks https://github.com/lifepillar/csv2keepassxml/blob/master/csv2keepassxml | |
# @example `csv2keepassxml -U 1 -u 2 -p 3 -n 4 -t 5 -g 6 lp.csv` | |
# Convert a CSV file into a KeePass 2 XML file. | |
require 'csv' | |
require 'date' | |
require 'htmlentities' |
#!/usr/bin/env bash | |
cat remote_branches.txt | xargs -I 'Branch' git push origin :Branch |
# Show the size of files under current directory(recursively) in bytes, and sort them in numeric order | |
find . | xargs -I _ stat -f "%z %N" _ | sort -n |
{"lastUpload":"2021-10-16T13:02:35.750Z","extensionVersion":"v3.4.3"} |
if exists("g:loaded_require_formatter") | |
finish | |
endif | |
let g:loaded_require_formatter = 1 | |
"Function: :format | |
"Desc: align the require statement | |
" | |
func! s:format() | |
python << EOF |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>三角测试</title> | |
<style id="jsbin-css"> | |
.dropdown a { | |
padding: 10px; | |
background: #aa4599; | |
position: relative; |