Skip to content

Instantly share code, notes, and snippets.

View skyend's full-sized avatar
🐢
Slow and pierce the world

Skyend skyend

🐢
Slow and pierce the world
View GitHub Profile
@skyend
skyend / ss
Created February 22, 2021 06:31
/per/mbo-reg/goal-hists?coId=1&buId=1&evalId=20&goalDgr=1&goalId=6
@skyend
skyend / httpGzipTest.go
Created February 24, 2021 16:07
Golang decompress gzip of response came from http.request
func Request() {
client := &http.Client{
//CheckRedirect: redirect
Transport: &http.Transport{DisableCompression: false},
}
req, err := http.NewRequest("GET","https://jsonplaceholder.typicode.com/todos/1", nil)
req.Header.Add("Accept-Encoding", "gzip, deflate")
if err != nil {
fmt.Println("Failed to create new request.")
@skyend
skyend / RecordAudio.swift
Created January 9, 2023 13:52 — forked from hotpaw2/RecordAudio.swift
Swift Audio Recording class. Reads buffers of input samples from the microphone using the iOS RemoteIO Audio Unit API
//
// RecordAudio.swift
//
// This is a Swift class (updated for Swift 5)
// that uses the iOS RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16.
// Copyright © 2017,2019 HotPaw Productions. All rights reserved.
@skyend
skyend / node-modules-recursive-packer.go
Last active November 14, 2023 13:08
node_modules Recursive packer
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
"sync"