Skip to content

Instantly share code, notes, and snippets.

View motus's full-sized avatar

Sergiy Matusevych motus

View GitHub Profile
Set-Alias ll ls
Import-Module posh-git
(ssh-agent).split(";").Trim() |
Select-String -Pattern "^SSH_.*=" |
%{
($name, $val)="$_".split("=");
Invoke-Expression "`$env:$name=`"$val`""
}
@motus
motus / keybase.md
Created June 20, 2018 21:34
That's me on keybase

Keybase proof

I hereby claim:

  • I am motus on github.
  • I am motus2 (https://keybase.io/motus2) on keybase.
  • I have a public key ASAyrcaQqIUia6WLJT-ZYEZekdusLwAE5Mvzgjz0r0naiwo

To claim this, I am signing this object:

@motus
motus / README.md
Last active September 24, 2015 03:52
Udacity D3js class assignment

Here's my attempt to review the following visualization:

WTF visualization

The original plot has the following problems:

  • The numbers do not add up to 100%; therefore, pie char does not make sense;
  • Radius of each segment in the Coxcomb chart does not convey any information;
  • Area and radius of each segment also do not correspond to the actual values.
@motus
motus / jobs.html
Created September 5, 2015 04:51
Udacity D3js class - redo Steve Jobs' pie chart
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://dimplejs.org/dist/dimple.v2.0.0.min.js"></script>
<script type="text/javascript">
function transform(d) {
d['share'] = parseFloat(d['share']);
#!/usr/bin/env Rscript
# library(cluster)
# library(Boruta)
# library(ggplot2)
clean <- function(dd) return (within(dd, {
AWKSTAT <- NULL
WKSWORK <- NULL
levels(ARACE) <- c(levels(ARACE), "Latino")