Skip to content

Instantly share code, notes, and snippets.

View dikiprawisuda's full-sized avatar

Diki Prawisuda dikiprawisuda

View GitHub Profile
@bishboria
bishboria / springer-free-maths-books.md
Last active November 28, 2025 17:29
Springer made a bunch of books available for free, these were the direct links
@arne-cl
arne-cl / restore_packages.R
Created September 16, 2014 08:46
save/load/install a list of your currently installed R packages
# restore_packages.R
#
# installs each package from the stored list of packages
# source: http://hlplab.wordpress.com/2012/06/01/transferring-installed-packages-between-different-installations-of-r/
load("~/installed_packages.rda")
for (count in 1:length(installedpackages)) {
install.packages(installedpackages[count])
}
@nifl
nifl / js-functions.md
Last active May 27, 2024 07:27
JS Functions

Functions

Functions are first–class citizens in JS, meaning that they can be passed around like any other type of data, eg, variables. http://en.wikipedia.org/wiki/First-class_function

Declared function

Declared functions build in memory immediately when the program loads.

Basic syntax

@us10096698
us10096698 / enc_converter.sh
Created October 28, 2013 03:06
Japanese Kanji File Encode Converter (from CP932/ISO-2022-JP-1/EUC-JP to UTF-8 with LF)
#!/bin/sh
#
# Japanese Kanji File Encode Converter (to UTF-8)
# Usage: $ sh ./enc_converter.sh "<FilePath>"
# <Filepath> is used for argument of "ls" command.
# Ex) sh ./enc_converter.sh "~/test/*.txt"
# Expect Output of 'file' Command
cp932="Non-ISO extended-ASCII text"
jis="ASCII text"