emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 20px; | |
| font-family: Arial, sans-serif; |
| from openai import OpenAI | |
| from configparser import ConfigParser | |
| import json | |
| config = ConfigParser() | |
| config.read("config.ini") | |
| def read_file(filename: str) -> str: | |
| with open(filename, 'r', encoding='utf-8') as f: |
| library(tidyverse) | |
| library(text2vec) | |
| library(stopwords) | |
| library(jsonlite) | |
| library(listviewer) | |
| raw <- read_csv(rstudioapi::selectFile()) | |
| preprocess <- function(x, special_keywords) { | |
| x |> |
| library(tidyverse) | |
| library(highcharter) | |
| raw <- readr::read_rds("sample.rds") | |
| weight = "XXXX" # replace with correct column | |
| vpouch <- raw |> | |
| select(-matches(weight)) |> | |
| names() |> | |
| (\(x) |
| #!/usr/bin/env python3 | |
| import argparse | |
| import configparser | |
| import sqlite3 | |
| import openai | |
| import pinecone | |
| config = configparser.ConfigParser() | |
| config.read("config.ini") | |
| from getpass import getpass | |
| from pprint import pprint | |
| from neo4j import GraphDatabase | |
| from pymongo import MongoClient | |
| ## get data from document database ---- | |
| mongodb_password = getpass("Enter Atlas password:") | |
| client = MongoClient( | |
| f"mongodb+srv://admin:{mongodb_password}@serverlessinstance0.9vrdx.mongodb.net" | |
| ) |
| // if x is a multiple of 3 then output "fizz", | |
| // if x is a multiple of 5 then output "buzz" | |
| // if x is a multiple of 15 then output "fizz buzz" | |
| // basic | |
| func fizz_buzz_alpha(max: Int) -> () { | |
| for number in 1...max { | |
| if number % 15 == 0 { | |
| print("fizz buzz") | |
| } else if number % 3 == 0 { |
| library(tidyverse) | |
| library(hrbrthemes) | |
| library(janitor) | |
| library(survival) | |
| library(survminer) | |
| library(shiny) | |
| library(miniUI) | |
| theme_set(theme_ipsum()) | |
| pals <- rownames(RColorBrewer::brewer.pal.info) |
| library(tidyverse) | |
| library(networkD3) | |
| raw <- pins::pin_get("projects", "local") | |
| df <- raw %>% | |
| mutate(associate = str_split(associate, pattern = ",|、")) %>% | |
| unnest_longer(associate) %>% | |
| filter(!is.na(associate)) %>% | |
| count(owner, associate) |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l