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
Compiled from "App.java" | |
public class org.example.App { | |
static java.util.Random rando; | |
public org.example.App(); | |
Code: | |
0: aload_0 | |
1: invokespecial #1 // Method java/lang/Object."<init>":()V | |
4: return |
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
Hello, World! |
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.tailoredshapes.hexoflife; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.stream.Collectors; | |
import static com.tailoredshapes.underbar.ocho.UnderBar.*; |
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.tailoredshapes.hexoflife; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
public class Game { | |
public boolean isAlive(Set<HexCoordinate> world, HexCoordinate coord) { | |
return world.contains(coord); | |
} |
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
[dependencies] | |
actix-web = "4.0.0-beta.8" | |
actix-rt = "2.2.0" | |
serde = { version = "1.0", features = ["derive"] } | |
serde_json = "1.0" | |
sqlite = "0.26.0" | |
tokio = { version = "1", features = ["full"] } |
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
class User { | |
constructor(data, queryName, account_link_url, bank_account_url) { | |
this._queryName = queryName; | |
this._account_link_url = account_link_url; | |
this._bank_account_url = bank_account_url; | |
this.object_id = data.object_id | |
this.firstName = data.firstName | |
this.lastName = data.lastName | |
this.displayName = data.displayName |
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
mod gol { | |
use std::collections::{HashMap, HashSet}; | |
use std::hash::{Hash}; | |
use ndarray::{arr2, Array2}; | |
use std::fmt::{Display, Formatter, Result}; | |
#[derive(Hash, PartialEq, Eq, Debug, Copy, Clone)] | |
pub struct Coordinate { | |
pub x: i32, | |
pub y: i32, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
rm -Rf / |
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
Feature: Main game | |
Any live cell with fewer than two live neighbors dies, as if by under population. | |
Any live cell with two or three live neighbors lives on to the next generation. | |
Any live cell with more than three live neighbors dies, as if by overpopulation. | |
Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction. | |
Scenario: A cell starts dead | |
Given we have a game: | |
""" | |
0,0,0 |
NewerOlder