Skip to content

Instantly share code, notes, and snippets.

View trangdata's full-sized avatar
😅
|> log() == 💧log(😄)

Trang Le trangdata

😅
|> log() == 💧log(😄)
View GitHub Profile
library(tidycensus)
library(ggiraph)
library(tidyverse)
library(patchwork)
vt_income <- get_acs(
geography = "county",
variables = "B19013_001",
state = "VT",
year = 2019,
@tk3369
tk3369 / memoize_perf.md
Last active July 10, 2021 12:23
Performance of various memoize implementations

Custom cache

Generic function

julia> const fib_cache = Dict()
Dict{Any,Any} with 0 entries

julia> _fib(n) = n < 3 ? 1 : fib(n-1) + fib(n-2)
_fib (generic function with 1 method)
@cecilialee
cecilialee / icon_in_dt.R
Last active February 22, 2022 19:11
Use icons in DT datatable in Shiny. #r #shiny #dt
library(shiny)
library(DT)
library(dplyr)
ui <- basicPage(
DT::dataTableOutput("table")
)
server <- function(input, output, session) {
output$table <- DT::renderDataTable({
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active March 15, 2026 20:51
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@MikeInnes
MikeInnes / startup.jl
Last active April 28, 2025 14:51
Some useful macros for Julia
# Repeat an operation n times, e.g.
# @dotimes 100 println("hi")
macro dotimes(n, body)
quote
for i = 1:$(esc(n))
$(esc(body))
end
end
end
@jaseemabid
jaseemabid / git tutorials.md
Last active January 13, 2026 15:29 — forked from netroy/git tutorials.md
Awesome git tutorials I am finding here and there