the field name and affiliation contains multiple person/organizations' infor | separate it and extract the related infor to multiple records
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
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 }, |
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.
- fellesorganiasjon -> fellesorganisasjon
- Bergen Univsersity College -> Bergen University College
- Samfunnsforsking -> Samfunnsforskning
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
;; -*- 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 |
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 node | |
var request = require('request'), | |
fs = require("fs"); | |
var skamSesongSubtitles = [["1", 'MSUB1912', '16AW', 11], | |
["2", 'MYNT1500', '16AA', 12], | |
["3", 'MYNT1520', '16AA', 10]]; | |
// get the subtitle content with given sesong number, episode, url, saving folder and callback function |
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
(ns experiment.infra.election | |
(:use [datomic.api :only [q] :as d]) | |
(:require [experiment.system :as sys] | |
[experiment.infra.data :as data] | |
[experiment.infra.protocols :as p])) | |
;; | |
;; Reserve - Simple peer coordination mechanism | |
;; | |
;; Reservations support multiple peers trying to distribution operations |
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
(def sync-source (chan)) | |
(def sync-sink (debounce sync-source 10000)) | |
(defn handle-event! [event] | |
(when-let | |
[handler (case (:type event) | |
:one-event function-wanna-call | |
unknown-event)] | |
(try | |
(apply handler (:args event)) |
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
(defn memoize | |
[f] | |
(let [mem (atom {})] | |
(fn [& args] | |
(if-let [e (find @mem args)] | |
(val e) | |
(let [ret (apply f args)] | |
(swap! mem assoc args ret) | |
ret))))) |
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
// For Parent.js | |
var Parent = React.createClass({ | |
getInitialState: function () { | |
return { parentValue: "" }; | |
}, | |
// the callback function is passed to Child as props | |
passValueFunc: function (para) { | |
// handle the passed value from Child | |
}, |
NewerOlder