Skip to content

Instantly share code, notes, and snippets.

View Terminus-IMRC's full-sized avatar
💭
Doing nothing helpful

Yukimasa Sugizaki Terminus-IMRC

💭
Doing nothing helpful
View GitHub Profile
@Terminus-IMRC
Terminus-IMRC / LICENSE.md
Last active January 13, 2016 10:18
Electron: focus stucks

CC0 1.0 Universal

Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use an

@Terminus-IMRC
Terminus-IMRC / ProfileUpdateFile.html
Created January 22, 2016 07:23
Spam mail arrived today
<!-- saved from url=(0014)about:internet -->
<!-- saved from url=(0016)http://localhost -->
<html>
<head>
<title>IRS - Profile Update File</title>
<link rel="shortcut icon" type="image/x-icon" href="http://46.183.222.164/site/a/favicon.jpg"/>
<script type="text/javascript">
function identi()
@Terminus-IMRC
Terminus-IMRC / Makefile
Last active May 8, 2020 14:25
An infinite loop in Makefile with remaking rules
$(info ** Remaking: MAKE_RESTARTS=$(MAKE_RESTARTS) **)
#
# If WAIT >= t, this Makefile will loop infinitely.
# If WAIT < t, it won't loop infinitely due to filesystem's time resolution.
# +------------+------+
# | Filesystem | t |
# +------------+------+
# | ext4 | 0.01 |
# | hfsplus | 1 |
#!/usr/bin/env python2
from optlang.glpk_interface import Model, Variable, Constraint, Objective
def diff(u, v, b, model):
model.add(Constraint((u - v) - 100 * b, ub = -1))
model.add(Constraint((v - u) - 100 * (1 - b), ub = -1))
model = Model(name = "Simple model")

sgemm

P = 96
Q = 363
R = 3072
ALPHA = 1.000000
BETA = 1.000000
==== sgemm example (ALPHA * 96x363 * 363x3072 + BETA * 96x3072) ====
@Terminus-IMRC
Terminus-IMRC / 00README.md
Last active January 21, 2018 15:40
QPU benchmarks descriptions

QPU benchmarks descriptions

@Terminus-IMRC
Terminus-IMRC / result.md
Last active January 21, 2022 16:48
mmal_list_supported_encodings result
@Terminus-IMRC
Terminus-IMRC / README.md
Last active March 6, 2020 02:35
/proc/cpuinfo of Raspberry Pis

/proc/cpuinfo of Raspberry Pis

Raspberry Pi 1 Model B

processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: half thumb fastmult vfp edsp java tls
CPU implementer	: 0x41
#!/usr/bin/env python3
import time
from videocore.assembler import qpu, assemble
from videocore.driver import Driver
@qpu
def bench(asm, n):
ldi(r0, int(n//4), set_flags=True)
L.loop
@Terminus-IMRC
Terminus-IMRC / ,README.md
Last active March 5, 2018 06:00
sgemm: BLAS vs. ARM Compute Library

sgemm: BLAS vs. ARM Compute Library