Skip to content

Instantly share code, notes, and snippets.

View hiroto-takatoshi's full-sized avatar
🇯🇵

Hiroto.Takatoshi hiroto-takatoshi

🇯🇵
View GitHub Profile
@hiroto-takatoshi
hiroto-takatoshi / 1.sh
Created October 23, 2020 18:44
ffmpeg stream m3u8 to mkv
ffmpeg -user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/537.86.7" -i https://video.twimg.com/ext_tw_video/1319701070679924736/pr/pl/320x240/XeIaUxYOinRmkAhF.m3u8 -c copy pd.mkv
@hiroto-takatoshi
hiroto-takatoshi / Breakdown
Last active September 16, 2020 18:59
Weekly Coding Time Breakdown
1
@hiroto-takatoshi
hiroto-takatoshi / overdef.json
Created February 19, 2020 07:57
test gson_json
{
"originalClass": ["apple", "pen"],
"extraClass": ["pineapple", "pen"]
}
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@hiroto-takatoshi
hiroto-takatoshi / app.js
Created July 26, 2018 07:05
netease lottery app
webpackJsonp([1], {
"+DRJ": function(t, e, a) {
"use strict";
var s = function() {
var t = this,
e = t.$createElement,
a = t._self._c || e;
return a("div", {
attrs: {
id: "expert_page"
@hiroto-takatoshi
hiroto-takatoshi / bestbet.py
Last active July 15, 2018 16:43
calculates best reward when choosing 3 gambling options
import numpy as np
from scipy.optimize import minimize
k0 = 2.22
k1 = 6.2
k2 = 6.2
kk0 = 0.33
kk1 = 0.33
kk2 = 0.34
This file has been truncated, but you can view the full file.
webpackJsonp([3], [function (e, t, n) {
"use strict";
function r(e) {
return e && e.__esModule ? e : {
default: e
}
}
Object.defineProperty(t, "__esModule", {
value: !0
! function(e, n) {
"object" == typeof exports && "object" == typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define([], n) : "object" == typeof exports ? exports.ezpf = n() : e.ezpf = n()
}(this, function() {
return function(e) {
var n = {};
function t(r) {
if (n[r]) return n[r].exports;
var o = n[r] = {
i: r,
@hiroto-takatoshi
hiroto-takatoshi / enza-game.min.js
Created April 30, 2018 19:06
enza-game.min.js
This file has been truncated, but you can view the full file.
! function(t, e) {
"object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.ezg = e() : t.ezg = e()
}(window, function() {
return function(t) {
var e = {};
function r(n) {
if (e[n]) return e[n].exports;
var i = e[n] = {
i: n,
#include <tins/tins.h>
#include <iostream>
#include <vector>
#include "tins/network_interface.h"
using namespace std;
using namespace Tins;
size_t counter(0);