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
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 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 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 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; |
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
package com.liveperson.lpbt.research.hadoop.scripts.EligibilityExperiment.auc.aucCalculators | |
import com.twitter.scalding._ | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 4/17/14 | |
* Time: 1:21 PM | |
* |
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
package com.liveperson.predictivedialer.examples.misc | |
import spray.json._ | |
import spray.json.DefaultJsonProtocol._ | |
import java.io.{PrintWriter, FileWriter} | |
import scala.concurrent.duration._ | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr |
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
package com.liveperson.mishael.misc | |
import scala.collection.immutable.SortedMap | |
import scala.util.Random | |
/** | |
* Created by mishaelr on 6/15/2014. | |
* | |
*/ | |
object Sampling { |
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
package core.misc | |
/** | |
* Created by mishael on 12/11/14. | |
* | |
*/ | |
object RegExpAlgebra { | |
case class Singleton(regExp: String) extends RegExpAlgebra | |
case class ~!(inner: RegExpAlgebra) extends RegExpAlgebra | |
case class And(l: RegExpAlgebra, r: RegExpAlgebra) extends RegExpAlgebra |
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
package core.sparkTest.examples | |
import com.twitter.algebird.Monoid | |
import scala.annotation.tailrec | |
import scala.collection.GenSeq | |
import scala.collection.immutable.Queue | |
/** | |
* Created by mishael on 3/23/15. |
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
package core.misc | |
import scala.util.Random | |
/** | |
* Created by mishael on 5/6/15. | |
* | |
*/ | |
object SudokuSolver { |
OlderNewer