This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "datetime", | |
| # "httpx", | |
| # ] | |
| # /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ts=0.07;ps=0.02;A=B=0; | |
| while(1){ j=i=0;z=rep(0,1760); | |
| b=rep(' ',1760); while(j < 6.28){ | |
| j=j+ts;i=0;while(i<6.28){i=i+ps;c= | |
| sin(i);l=cos(i); d=cos(j);f=sin(j); | |
| e=sin(A);g=cos(A );h=d+2;D=1/(c*h*e+ | |
| f*g+5);m=cos(B) ;n=sin(B);t=c*h*g- | |
| f*e;x=as.integer (40+30*D*(l*h*m-t*n)); | |
| y=as.integer(12+ 15*D*(l*h*n+t*m)); | |
| o=as.integer(x+( 80*y));N=as.integer( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##___________________________________________________ | |
| ## | |
| ## Script name: render_pointcloud.R | |
| ## | |
| ## Purpose of script: | |
| ## render forest plot pointcloud with raytracing | |
| ## | |
| ## Author: Jens Wiesehahn | |
| ## Copyright (c) Jens Wiesehahn, 2023 | |
| ## Email: [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "version": 2, | |
| "final_space": true, | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| options(reactable.theme = reactable::reactableTheme( | |
| color = "hsl(233, 9%, 87%)", | |
| backgroundColor = "#002b36", | |
| borderColor = "#eee8d5", | |
| stripedColor = "#586e75", | |
| highlightColor = "#6c71c4", | |
| inputStyle = list(backgroundColor = "hsl(233, 9%, 25%)"), | |
| selectStyle = list(backgroundColor = "hsl(233, 9%, 25%)"), | |
| pageButtonHoverStyle = list(backgroundColor = "hsl(233, 9%, 25%)"), | |
| pageButtonActiveStyle = list(backgroundColor = "hsl(233, 9%, 28%)") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unpack_double <- function(x) { | |
| binary <- numToBits(x) # little-endian binary representation | |
| structure( | |
| list( | |
| sign = binary[64], # 1-bit sign | |
| exponent = binary[63:53], # 11-bit exponent | |
| mantissa = binary[52:1] # 52-bit mantissa | |
| ), | |
| class = "unpacked_double" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To do the first time | |
| # git remote add upstream https://github.com/original-repo/goes-here.git | |
| git fetch upstream | |
| git rebase upstream/master | |
| git push origin master --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## apply a function to square a list of numbers | |
| square <- function(x) { | |
| x^2 | |
| } | |
| lapply(list(1,2,3), square) | |
| ## save some code and declare 'square' anonymously - i.e. never assign it anywhere | |
| ## using the name 'square' |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ID,name,long,lat,region | |
| 1,'31 Market Place',-1.021284,53.429981,england | |
| 1,'The Commercial Hotel',-2.364444,53.752023,england | |
| 3,'The Park Inn ',-2.358299,53.747997,england | |
| 5,0 degrees North,-0.0309,53.560872,england | |
| 6,012 Bar And Grill,0.004034,51.544232,england | |
| 7,1 In 12 Club,-1.758029,53.794847,england | |
| 8,1 Step Social Limited,-1.633635044,54.81035995,england | |
| 9,1 Town Hall Square,-3.4474502,51.4620403,wales | |
| 10,100 Acre Catering Ltd,-1.838364,51.063689,england |
NewerOlder