This file contains hidden or 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
| # Use git and git+ssh instead of https | |
| [url "git://github.com/"] | |
| insteadOf = https://github.com/ | |
| [url "git@github.com:"] | |
| pushInsteadOf = "git://github.com/" | |
| [url "git@github.com:"] | |
| pushInsteadOf = "https://github.com/" |
This file contains hidden or 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 numpy | |
| from miniquake import * | |
| SITES = sites(boundary=[(-111, 29), (-127, 29), (-127, 43.5), (-111, 43.5)], | |
| discretization=10, vs30=760, vs30measured=False, z1pt0=100, | |
| z2pt5=5) | |
| SOURCES = sources('/tmp/NRML04/CaliforniaGriddedSeismicity.xml', |
This file contains hidden or 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.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import javax.swing.Timer; | |
| public class GameKernel implements Runnable { | |
| public static int playerX = 400; | |
| public static int playerY = 300; |
This file contains hidden or 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.awt.Canvas; | |
| import java.awt.Color; | |
| import java.awt.Graphics2D; | |
| import java.awt.image.BufferStrategy; | |
| public class GameCanvas extends Canvas { | |
| private BufferStrategy strategy; |
This file contains hidden or 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.awt.Dimension; | |
| import javax.swing.JFrame; | |
| import javax.swing.JScrollPane; | |
| public class GameWindow extends JFrame { | |
| private JScrollPane viewer; | |
| private GameCanvas canvas; | |
| public static final Dimension SIZE = new Dimension(800, 600); |
This file contains hidden or 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 Main { | |
| public static void main(String[] args) { | |
| Thread thread = new Thread(new GameKernel()); | |
| thread.run(); | |
| } | |
| } |