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
    
  
  
    
  | ECW<-c(3:300) | |
| N<-c(2:12) | |
| OECW=c() | |
| for(n in N) { | |
| S=1540 | |
| ts<-28*10^-6+254*10^-6+10*10^-6+30*10^-6 | |
| tc=28*10^-6+254*10^-6+10*10^-6 | |
| tn<-9*10^-6 | |
| pt=2/(ECW+1) | |
| pn=(1-pt)^n | 
  
    
      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
    
  
  
    
  | /* | |
| Kruskal-Wallis test | |
| Implemented by Dmitriy Kuptsov | |
| Time complexity of the test is O(nlogn) | |
| */ | |
| /* | |
| Space complexity: O(nlogn) | |
| Time complexity: O(nlogn) | |
| */ | 
  
    
      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
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| int arr[10]; | |
| int target[10]; | |
| int * init_arr(int * arr, int len); | |
| void print_arr(int * arr, int len); | |
| void sort(int * arr, int len); | |
| void swap(int * arr, int i, int j); | |
| int test(int * source, int * target, int len); | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| HOST_FOLDER=$1 | |
| GUEST_FOLDER=$2 | |
| sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) $HOST_FOLDER $GUEST_FOLDER | 
  
    
      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/python | |
| import subprocess | |
| import re | |
| # Get process info | |
| ps = subprocess.Popen(['ps', '-caxm', '-orss,comm'], stdout=subprocess.PIPE).communicate()[0] | |
| vm = subprocess.Popen(['vm_stat'], stdout=subprocess.PIPE).communicate()[0] | |
| # Iterate processes | 
  
    
      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
    
  
  
    
  | # Tested on MAC OS and Linux | |
| BASE="gcc-arm-none-eabi-4_9-2014q4" | |
| if [ $1=="linux" ] | |
| then | |
| IMAGE=gcc-arm-none-eabi-4_9-2014q4-20141203-linux | |
| else | |
| IMAGE=gcc-arm-none-eabi-4_9-2014q4-20141203-mac | |
| fi | |
| cd ~/Downloads/ | |
| wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/$IMAGE.tar.bz2 | 
  
    
      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
    
  
  
    
  | # Copyright 2013, Harvest Exchange Corporation | |
| # | |
| # 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 | |
| # distributed under the License is distributed on an "AS IS" BASIS, | 
  
    
      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
    
  
  
    
  | # riemann upstart file | |
| pre-start script | |
| mkdir -p /var/log/riemann/ | |
| end script | |
| respawn | |
| respawn limit 15 5 | |
| start on runlevel [2345] | 
  
    
      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
    
  
  
    
  | f1 <- | |
| function(x, y) {x+y} |