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
|6:30|6:45|7:00|7:15|7:30|7:45|8:00|8:15|8:30|8:45|9:00|9:15|9:30|9:45|10:00| | |
01| 12 | 12 | 12 | 12 | 7 | 7 | 7 | 7 | 6 | 6 | 6 | 6 | | | | | |
02| 15 | 15 | 15 | 15 | | 10 | 10 | 10 | 10 | | 9 | 9 | 9 | 9 | | | |
03| | | 1 | 1 | 1 | 1 | 16 | 16 | 16 | 16 | 5 | 5 | 5 | 5 | | | |
04| | | 4 | 4 | 4 | 4 | 8 | 8 | 8 | 8 | | | | | | | |
05| | | | 11 | 11 | 11 | 11 | 13 | 13 | 13 | 13 | | | | | | |
06| | | | 14 | 14 | 14 | 14 | | | | | | | | | | |
07| | | | | 2 | 2 | 2 | 2 | 17 | 17 | 17 | 17 | | | | | |
08| | | | | 3 | 3 | 3 | 3 |free| | 18 | 18 | 18 | 18 | | |
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
LEVEL_VERBOSE = 1 | |
LEVEL_INFO = 2 | |
LEVEL_DEBUG = 3 | |
LEVEL_ERROR = 4 | |
TITLES = {LEVEL_VERBOSE: "V", LEVEL_INFO: "I", LEVEL_DEBUG: "D", LEVEL_ERROR: "E"} | |
DEFAULT_TAGS = ["Manager", "gameinfo"] | |
class Logger(object): |
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.yoavst.hacking; | |
import javax.imageio.ImageIO; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.util.ArrayList; | |
import java.util.List; |
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.yoavst.testing | |
import android.content.Intent | |
import android.support.test.InstrumentationRegistry | |
import android.support.test.filters.SdkSuppress | |
import android.support.test.runner.AndroidJUnit4 | |
import android.support.test.uiautomator.* | |
import com.github.salomonbrys.kotson.* | |
import com.google.gson.JsonParser | |
import fr.arnaudguyon.xmltojsonlib.XmlToJson |
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.yoavst.testing | |
fun main(args: Array<String>) { | |
/* | |
* Read cells. | |
* Format: y,x | |
* Where y,x are zero based. | |
* Stops when receive input "stop". | |
*/ | |
val input = generateSequence { readLine()?.takeIf { it != "stop" }?.split(',')?.let { (y, x) -> x.toInt() to y.toInt() } } |
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.yoavst.bgonen | |
import java.io.File | |
import javax.imageio.ImageIO | |
fun main(args: Array<String>) { | |
val image = ImageIO.read(File("""IMAGE_PATH""")) | |
val w = image.width | |
val h = image.height | |
val array = Array(w) { IntArray(h) } |
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.yoavst.psychometric | |
import com.yoavst.resourceOf | |
import org.apache.pdfbox.pdmodel.PDDocument | |
import org.apache.pdfbox.text.PDFTextStripper | |
import org.apache.pdfbox.text.TextPosition | |
fun main(args: Array<String>) { | |
val file = File("psychometric/exam.pdf") | |
val document = PDDocument.load(file) |
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
using System; | |
using System.Linq; | |
namespace CSharp | |
{ | |
class FindFrog | |
{ | |
static void Main(string[] args) | |
{ | |
long now = DateTimeOffset.Now.ToUnixTimeSeconds(); |
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.yoavst.testing | |
import java.io.File | |
import java.util.* | |
import kotlin.math.absoluteValue | |
import kotlin.math.max | |
interface Locatable { | |
val x: Int | |
val y: Int |
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.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* Credit to Amitai Cohen, the creator of the original code in python. | |
* Ported by Yoav Sternberg | |
*/ | |
class WAVLTreePrinter { | |
private WAVLTreePrinter(){} |
OlderNewer