Skip to content

Instantly share code, notes, and snippets.

View blizzarddreams's full-sized avatar
❄️
arctic fox

Blizzard blizzarddreams

❄️
arctic fox
  • Kentucky
  • 01:23 (UTC -04:00)
View GitHub Profile
package ircscalabot;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.Socket;
/**
* Created by Anthony on 12/21/2015.
*/
public class Bot {
<?php
namespace Dog\Clock;
class Clock
{
function tick()
{
while (true)
{
package scala
/**
* Created by Anthony on 12/20/2015.
*/
object Learning {
implicit class toList(x:String) {
def capitalizeAll() = {
val strList = x.splitAt(1).productIterator.toList.map(_.toString())
package ircscalabot
import java.io._
import java.net.Socket
object Bot extends App {
val scalabot = new Bot("scalaevalbot", "", "irc.freenode.net", 6667, List("#botwars"), '$')
scalabot.connect()
}
package ircscalabot
import java.io._
import java.net.Socket
/**
* Created by Anthony on 12/19/2015.
*/
import scala.concurrent._
import ExecutionContext.Implicits.global
import scala.concurrent.duration._
object Dog extends App {
def go() = {
val futures = List(
class CommandList {
def hello(): String = {
return "Hello"
}
}
val command = "hello"
// somehow call the method "hello" using the variable command
import scala.concurrent.ExecutionContext.Implicits.global
import scala.actors.Future
import scala.concurrent.Future
import scala.util.{Failure, Success, Random}
// Yes I know not every import is used
object LearningFuture extends App {
val f = Future {
for (i <- 1 to 10) {
println("Hello")
import java.util.*;
import java.util.stream.Collectors;
/**
* Created by Anthony on 12/18/2015.
*/
public class Solution {
public static void main(String[] args) {
List<String> numbers = new ArrayList<String>();
import java.util.*;
import java.util.stream.Collectors;
/**
* Created by Anthony on 12/18/2015.
*/
public class Solution {
public static void main(String[] args) {
List<String> numbers = new ArrayList<String>();