Skip to content

Instantly share code, notes, and snippets.

@caprice-j
caprice-j / melonpan_in_high_dimension.R
Created July 1, 2015 23:41
melonpan-like visualization of "curse of dimensionality"
if( require("ggplot2") == FALSE ) install.packages("ggplot2"); library(ggplot2)
dimensions <- 1:700
crisp_height <- .01
crisp_area <- rep(NA, length(dimensions))
#plot(1,1,type="n", xlim=c(min(dimensions),max(dimensions)), ylim=c(0,1))
#abline(h = 1, lty="dashed")
for( D in dimensions ){
@caprice-j
caprice-j / dot_config
Created March 17, 2017 05:08
config for KVM on RPI3 (failed)
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.10.2 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_DEBUG_RODATA=y
CONFIG_ARM64_PAGE_SHIFT=12
@caprice-j
caprice-j / config
Created March 15, 2017 23:47
config for RPI3
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.10.2 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_DEBUG_RODATA=y
CONFIG_ARM64_PAGE_SHIFT=12
@caprice-j
caprice-j / dmesg.output
Created March 1, 2017 16:54
On Raspberry Pi 3 (64-bit mode)
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.11-v8+ (pcu@ubt) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #2 SMP PREEMPT Wed Feb 22 01:51:25 EST 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 8 MiB at 0x000000003a800000
[ 0.000000] On node 0 totalpages: 241664
[ 0.000000] DMA zone: 3776 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 241664 pages, LIFO batch:31
# -*- coding: utf-8 -*-
print("             /)".replace(" "," "))
print("           ///)".replace(" "," "))
print("          /,.=゙''\"/".replace(" "," "))
print("   /     i f ,.r='\"-‐'つ____   こまけぇこたぁいいんだよ!!".replace(" "," "))
print("  /      /   _,.-‐'~/⌒  ⌒\".replace(" "," "))
print("    /   ,i   ,二ニ⊃( ●). (●)\".replace(" "," "))
print("   /    ノ    il゙フ::::::⌒(__人__)⌒::::: \".replace(" "," "))
print("      ,イ「ト、  ,!,!|     |r┬-|     |".replace(" "," "))
PCUser@air-2.local click $brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 3236e231cba16658a26005183ec1cd0ae7ac6bee
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.9.3-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587