Skip to content

Instantly share code, notes, and snippets.

View leiqunni's full-sized avatar

leiqunni leiqunni

View GitHub Profile
@epk
epk / README.md
Last active June 14, 2025 03:04
Google Maps Timeline Activity Viewer

Google Maps Timeline Activity Viewer

This tool visualizes Google Maps Timeline data using JSON exported from the Google Maps app on iOS. It includes a handful of improvements and fixes to make it work with the iOS format, building on the original project by kurupted.

Please be warned that bulk of this is GPT/Claude generated slop on top of the original project

Instructions

[% aregeword = ['アレゲはアレゲ以上のなにものでもなさげ -- アレゲ研究家',
'吾輩はリファレンスである。名前はまだ無い -- perlの中の人',
'犯人は巨人ファンでA型で眼鏡をかけている -- あるハッカー',
'犯人はmoriwaka -- Anonymous Coward',
'クラックを法規制強化で止められると思ってる奴は頭がおかしい -- あるアレゲ人',
'日本発のオープンソースソフトウェアは42件 -- ある官僚',
'あつくて寝られない時はhackしろ! 386BSD(98)はそうやってつくられましたよ? -- あるハッカー',
'未知のハックに一心不乱に取り組んだ結果、私は自然の法則を変えてしまった -- あるハッカー',
'皆さんもソースを読むときに、行と行の間を読むような気持ちで見てほしい -- あるハッカー',
'ナニゲにアレゲなのは、ナニゲなアレゲ -- アレゲ研究家',
@bdesham
bdesham / submit_urls.py
Last active December 4, 2022 17:45
Takes a sitemap file and submits each URL to the Wayback Machine
#!/usr/bin/env python3
# Takes a sitemap file [1] and submits each URL to the Wayback Machine [2].
#
# Usage: python3 submit_urls.py sitemap.xml
#
# The script will contact the Wayback Machine for each URL in turn and request
# that it be saved [3]. The script prints (to standard output) the HTTP status
# code received from the Wayback Machine for each URL. The output looks like
# this:
@culage
culage / PHPExcel-howto-range-copy.php
Last active November 1, 2023 02:00 — forked from onocom/PHPExcel-howto-range-copy.php
[PHPExcel] 範囲コピー(セルの結合(マージ)にも対応、画像にも対応、行の高さにも対応、数式は相対位置でコピー)
// セルの書式を指定位置にコピーする
// @param $from_cells コピー元のセル範囲
// @param $to_cell コピー先の左上のセル
// @param $copycount コピーを繰り返す回数(下へコピーするのみ)
function CopyCellsFormat($sheet, $from_cells, $to_cell, $copycount=1) {
// ----------------------------------------
// コピー元のセルの範囲を数値で取得
// ----------------------------------------
$from_area = PHPExcel_Cell::rangeBoundaries($from_cells); // ex) array( array(2, "2"),array(53, "3"))
#include <stdio.h>
#include <stdint.h>
#include <time.h>
static inline
uint64_t getCycles(void)
{
#if defined(__ARM_ARCH_7A__)
uint32_t r;
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@josephg
josephg / Results
Created August 26, 2012 06:07
Librope vs SGI ropes vs C strings
$ ./a.out -b
Benchmarking...
benchmarking librope
did 500000 iterations in 157.574000 ms: 3.173112 Miter/sec
final string length: 5799
benchmarking c string
did 500000 iterations in 1556.024000 ms: 0.321332 Miter/sec
final string length: 5799