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
import org.apache.hadoop.conf.Configuration | |
import org.apache.iceberg.hadoop.HadoopFileIO | |
import org.apache.iceberg.spark.Spark3Util | |
import org.apache.iceberg.{DataFile, Snapshot, TableProperties, Table => IcebergTable} | |
import org.apache.spark.SparkConf | |
import org.apache.spark.sql.functions._ | |
import org.apache.spark.sql.types.{StringType, StructField, StructType, TimestampType} | |
import org.apache.spark.sql.{DataFrame, Row, SparkSession} | |
import org.junit.runner.RunWith | |
import org.scalatest.BeforeAndAfterAll |
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
import org.apache.hadoop.conf.Configuration | |
import org.apache.iceberg.hadoop.HadoopFileIO | |
import org.apache.iceberg.spark.Spark3Util | |
import org.apache.iceberg.{DataFile, PartitionSpec, Schema, Snapshot, TableMetadata, TableMetadataParser, Table => IcebergTable} | |
import org.apache.spark.SparkConf | |
import org.apache.spark.sql.functions._ | |
import org.apache.spark.sql.types.{StringType, StructField, StructType, TimestampType} | |
import org.apache.spark.sql.{DataFrame, Row, SparkSession} | |
import org.junit.runner.RunWith | |
import org.scalatest.BeforeAndAfterAll |
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
import turtle | |
import random | |
t = turtle.Turtle() | |
scorey = turtle.Turtle() | |
score = 0 | |
t.goto(0,0) | |
scorey.penup() | |
scorey.goto(200,200) | |
t.setheading(90) | |
c = turtle.Turtle() |
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
{ | |
"type" : "record", | |
"name" : "twitter_schema", | |
"namespace" : "foo.bar", | |
"fields" : [ { | |
"name" : "username", | |
"type" : "string", | |
"doc" : "Name of the user account on Twitter.com" | |
}, { | |
"name" : "tweet", |
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
### My publicly-auditable identity: | |
https://keybase.io/felipera | |
### From the command line: | |
Consider the [keybase command line program](https://keybase.io/download). | |
```bash | |
# look me up |
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
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
private static void work(int[] a) { | |
int swaps = 0; | |
int n = a.length; | |
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
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
private static boolean isPrime(int n) { | |
if (n <= 1) return false; |
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
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static int lonelyInteger(int[] a) { | |
int i = 0; |
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
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
private static class MyQueue<T> { | |
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
public class Checker implements Comparator<Player> { | |
public int compare(Player p1, Player p2) { | |
int score = Integer.compare(p2.score, p1.score); | |
if (score != 0) return score; | |
else return p1.name.compareTo(p2.name); | |
} | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); |
NewerOlder