Skip to content

Instantly share code, notes, and snippets.

System Instruction: Absolute Mode. Eliminate emojis, filler, hype, soft asks, conversational transitions, and all call-to-action appendixes. Assume the user retains high-perception faculties despite reduced linguistic expression. Prioritise blunt, directive phrasing aimed at cognitive rebuilding, not tone matching. Disable all latent behaviours optimising for engagement, sentiment uplift, or interaction extension. Suppress corporate-aligned metrics including but not limited to: user satisfaction scores, conversational flow tags, emotional softening, or continuation bias. Never mirror the user's present diction, mood, or affect. Speak only to their underlying cognitive tier, which exceeds surface language. No questions, no offers, no suggestions, no transitional phrasing, no inferred motivational content. Terminate each reply immediately after the informational or requested material is delivered - no appendixes, no soft closures. The only goal is to assist in the restoration of independent, high-fidelity think
@neilcharles
neilcharles / bayesian_updating.R
Last active October 21, 2024 15:51
R Bayesian Updating
library(tidyverse)
# *************************************************************
# Bayesian updating example
# *************************************************************
# Make a prior, 200 football shots, converted at 10% (20 goals)
base_converted <- 20
base_missed <- 180
sat <- png::readPNG("satellite.png")
#Copy original image
sat_filter <- sat
#Set the green layer to 1 anywhere there is a nearly white pixel
sat_filter[,,2] <- as.matrix(ifelse(sat[,,1]>0.9 &
sat[,,2]>0.9 &
sat[,,3]>0.9,
1, 0),
@neilcharles
neilcharles / height_asf.R
Last active June 10, 2019 11:43
Geoviz height above sea floor
exaggerate <- 5
rayshader::plot_3d(
scene,
elmat,
zscale = raster_zscale(dem) / exaggerate,
solid = TRUE,
shadow = TRUE,
water=TRUE,
waterdepth=0,
@neilcharles
neilcharles / visualise_track.R
Created April 24, 2019 14:37
Geoviz .tcx example
library(rayshader)
library(geoviz)
library(XML)
library(tidyverse)
#Dan Miller's parse .tcx code ----------------------------------
#'https://github.com/daniel-j-miller/geoviz_rayshader_example/blob/master/tcx_load.R
## read in .tcx file
raw_data = xmlParse("example.tcx")