Skip to content

Instantly share code, notes, and snippets.

@xfsnowind
xfsnowind / .spacemaces
Last active August 27, 2018 18:16
The configuration of spacemaces
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
@xfsnowind
xfsnowind / author-filter-rules.md
Created June 28, 2017 09:05
author filter rules

Author file have several situations:

situations solutions
the field name and affiliation contains multiple person/organizations' infor separate it and extract the related infor to multiple records
the field name contains organization's infor and the field affiliation is not empty extract the related infor to one record
only field name has value, and it contains the multiple persons/organizations' infor separate it and extract the related infor to multiple records
only field name has value, and it contains only one person/organization's name extract the related infor to one record
only field affiliation has value, and it only contains one organization's name normalize the record
? only field affiliation has value, and it only contains one person/organization's name normalize the record

These are the filter rules which should be applied to all values of field "name". Some rules like "Handle mixed name" is decided, while some others are not.

Merge multiple whitespace

Replace wrong words:

  • fellesorganiasjon -> fellesorganisasjon
  • Bergen Univsersity College -> Bergen University College
  • Samfunnsforsking -> Samfunnsforskning

Replace whitespace, with ,

Replace \whitespace with \

Replace , with ,whitespace

Merge duplicated whitespace

the field name and affiliation contains multiple person/organizations' infor | separate it and extract the related infor to multiple records

@xfsnowind
xfsnowind / rspack.config.ts
Created December 27, 2023 08:06
rspack config file
require('dotenv').config()
const { join } = require('path')
const rspack = require('@rspack/core')
const { defineConfig } = require('@rspack/cli')
const ReactRefreshPlugin = require('@rspack/plugin-react-refresh')
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const {
resolveJSAndTS,
getModuleJSAndTSRules,
plugins: { ignoreMomentLocalesPlugin },