This file contains 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
############################################################################## | |
# Copyright 2012 Vehbi Sinan Tunalioglu # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # | |
# you may not use this file except in compliance with the License. # | |
# You may obtain a copy of the License at # | |
# # | |
# http://www.apache.org/licenses/LICENSE-2.0 # | |
# # | |
# Unless required by applicable law or agreed to in writing, software # |
This file contains 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
##' Declares the generic as.json method. | |
##' | |
##' @param x the object to be marshalled to JSON | |
##' @param ... extra arguments to the actual function | |
##' @return a JSON representation of the consumed object. | |
##' @export | |
as.json = function (x, ...) { | |
UseMethod("as.json") | |
} |
This file contains 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
#!/bin/bash | |
######################################################################## | |
# Description: | |
# Produces custom ChangeLog file contents out of the "git log" | |
# | |
# Usage: | |
# sh changelog.sh | |
# | |
# Usage (Save output): |
This file contains 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
/** | |
* Constructs a random string with the given length and character set. | |
* | |
* If no character set is provided, default character set will be used. | |
*/ | |
function randstr (length, charset) { | |
// (Re)define the charset: | |
charset = charset || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
// construct and return: |
This file contains 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
#!/bin/bash | |
# For Mac OSX :| | |
pcal -w -P a4 -F 1 -t Garamond -d Garamond | open -a preview -f |
This file contains 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
;; Declares the variable for the destination folder. | |
(defvar *vst-tmdfile-folder* "/tmp") | |
;; Defines the function which creates a temporary markdown file in the | |
;; destination folder. | |
(defun vst-tmdfile () | |
(interactive) | |
(find-file (format "%s/%s.md" | |
*vst-tmdfile-folder* | |
(format-time-string "%Y-%m-%dT%T")))) |
This file contains 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
#!/bin/bash | |
## **Description:** Creates a folder named `CRAN` in the same folder | |
## as this script and mirrors/syncs master CRAN repository to the | |
## `CRAN` folder. | |
# Get the script path: | |
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P ) | |
# Get the mirror path: |
NewerOlder