Skip to content

Instantly share code, notes, and snippets.

@hhsprings
hhsprings / ffchopreview.py
Last active April 6, 2022 21:12
to preview ffmpeg's trim
#! py -3
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import io
import sys
import subprocess
import pipes
import os
import re
@al45tair
al45tair / gist:73be245ab87a66a885742b98be91ac14
Last active April 10, 2024 09:00
Files installed by Zoom for mac OS

The Zoom install package for macOS is mad. Rather than actually using the installer to install things, it does everything in the preinstall script. That's bonkers, and also means that the system won't have a list of the files it installed, because it's doing it using shell script.

The script appears to install two items, namely:

/Applications/zoom.us.app
~/Library/Internet Plug-Ins/ZoomUsPlugIn.plugin

If the user opening the package isn't an administrator, it looks like it will install the app in the user's home folder instead. If they are an administrator, Zoom will delete the ZoomUsPlugIn.plugin from /Library if it's there, but it still installs to ~/Library.

It also adds Zoom to your Dock automatically, without asking.

@tel1214
tel1214 / bitbankから価格情報を取得するコード
Last active November 16, 2019 22:14
bitbankのAPIから定期的にbtcの価格情報を取得するコードです
from datetime import datetime, date
import python_bitbankcc
import time
while True:
# ロウソク足データを取得
pub = python_bitbankcc.public()
today = datetime.today()
list_yyyymmdd = str(today).split(" ")
list2_yyyymmdd = str(list_yyyymmdd[0]).split("-")
@azu
azu / README.md
Last active January 16, 2026 06:54
スタートアップ/企業の調べ方
@jasonsbarr
jasonsbarr / bootstrap4.code-snippets
Last active October 21, 2018 19:08
VS Code snippets for Bootstrap 4: starter template (with app.css/app.js), components, and css and script tag-only snippets (CDN for CSS & JS)
{
"Bootstrap 4 full": {
"scope": "html",
"prefix": "boot4",
"body": [
"<!doctype html>",
"<html lang=\"en\">",
"<head>",
"\t<!-- Required meta tags -->",
"\t<meta charset=\"utf-8\">",
@galactic993
galactic993 / keepa_sample_with_gas.gas.js
Last active November 16, 2019 22:14
keepa APIのRequest ProductsでAmazon商品情報取得のやり方(Nodejs ver.) ref: https://qiita.com/KazukiOkada/items/2663aab38630007b09f6
const asins = ['B011111111','B022222222','B033333333'];
const request = UrlFetchApp.fetch('https://api.keepa.com/product',{
method : 'POST',
headers : { 'Connection' : 'keep-alive' },
payload : {
key : '自分のAPIキーを入力',
domain : '5',
asin : asins.join()
},
});
@RobinfWu
RobinfWu / d3-lasso.min.js
Last active October 10, 2018 13:43
Visualizing Bon Voyage
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-selection"),require("d3-drag")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-drag"],n):n(t.d3=t.d3||{},t.d3,t.d3)}(this,function(t,n,r){"use strict";function e(t,n){return n={exports:{}},t(n,n.exports),n.exports}function o(){function t(t){function u(){p=[],h="",_.attr("d",null),m.attr("d",null),r.nodes().forEach(function(t){t.__lasso.possible=!1,t.__lasso.selected=!1,t.__lasso.hoverSelect=!1,t.__lasso.loopSelect=!1;var n=t.getBoundingClientRect();t.__lasso.lassoPoint=[Math.round(n.left+n.width/2),Math.round(n.top+n.height/2)]}),s&&r.on("mouseover.lasso",function(){this.__lasso.hoverSelect=!0}),i.start()}function l(){var t,n;"touchmove"===d3.event.sourceEvent.type?(t=d3.event.sourceEvent.touches[0].clientX,n=d3.event.sourceEvent.touches[0].clientY):(t=d3.event.sourceEvent.clientX,n=d3.event.sourceEvent.clientY);var s=d3.mouse(this)[0],u=d3.mouse(this)[1];""===h?(h=h+"M "+s+" "+u,v=[t,n],d=[s,
@eddiewebb
eddiewebb / readme.md
Last active January 12, 2026 06:31
Hugo JS Searching with Fuse.js
@sloanlance
sloanlance / jq_jsonl_conversion.md
Last active February 8, 2026 05:39
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion

Prerequisites

  • jqhttps://jqlang.org/ — "like sed for JSON data"

    There are several options available for installing jq. I prefer to use Homebrew: brew install jq

  • JSONL → JSON

#!/bin/sh
# default commands for osx to make it nicer to work with
##########################
# General UI?UX settings #
##########################
# Set hostname (hex of MVB9APPS)
sudo scutil --set ComputerName "0x4d56423941505053"
sudo scutil --set HostName "0x4d56423941505053"