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
package com.liveperson.predictivedialer.common.utils | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 1/16/14 | |
* Time: 3:12 PM | |
*/ | |
object TraversableWithStatistics { | |
implicit class RichTraversable[+A](collection: Traversable[A]){ |
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
package com.liveperson.predictivedialer.examples.misc | |
import scala.util.Random | |
import scala.collection.mutable | |
import com.liveperson.predictivedialer.common.utils.TraversableWithStatistics._ | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 1/16/14 |
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
package com.liveperson.predictivedialer.examples.misc | |
import scala.util.Random | |
import scala.collection.mutable | |
import com.liveperson.predictivedialer.common.utils.TraversableWithStatistics._ | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 1/16/14 |
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
package com.liveperson.predictivedialer.common.sessions | |
import scala.concurrent.duration.FiniteDuration | |
/** | |
* User: michaelna | |
* Date: 1/15/14 | |
* Time: 2:58 PM | |
*/ | |
object InviteResponse { |
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
package com.liveperson.predictivedialer.examples.misc | |
import scala.util.Random | |
import scala.collection.immutable.{HashSet, SortedSet, TreeSet} | |
import org.junit.runner.RunWith | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.{Matchers, FlatSpec} | |
/** | |
* Created with IntelliJ IDEA. |
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
package com.liveperson.predictivedialer.examples.misc | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest.prop.Checkers | |
import org.scalacheck.Prop._ | |
import org.scalacheck.Arbitrary._ | |
import org.scalacheck.Arbitrary | |
import org.scalacheck.Gen | |
import scala.collection.immutable.{HashSet, SortedSet, TreeSet} | |
import org.junit.runner.RunWith |
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
package com.liveperson.predictivedialer.common.utils | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 3/4/14 | |
* Time: 7:18 PM | |
* | |
* This object contains static methods that can be used for calculating mean in variance incrementally. | |
* Based on the following: |
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
package com.liveperson.predictivedialer.examples.misc | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 3/23/14 | |
* Time: 11:50 AM | |
* | |
* A two pass implementation | |
* http://www.cs.yale.edu/homes/el327/datamining2011aFiles/ASimpleAlgorithmForFindingFrequentElementsInStreamsAndBags.pdf |
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
package com.liveperson.predictivedialer.examples.misc | |
import scala.math.Ordering | |
import scala.annotation.tailrec | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 3/26/14 | |
* Time: 2:47 PM |
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/perl | |
use Getopt::Long; | |
#use File::chdir; | |
use Cwd; | |
GetOptions ('host=s' => \$host, 'user=s' => \$user) | |
or die("Usage: perl private_keys.pl --user <user name> --host <host name>\n"); | |
print "user $user, host $host\n"; | |
my $originDir = getcwd; |
OlderNewer