View JavaGetUrl.java
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
//------------------------------------------------------------// | |
// JavaGetUrl.java: // | |
//------------------------------------------------------------// | |
// A Java program that demonstrates a procedure that can be // | |
// used to download the contents of a specified URL. // | |
//------------------------------------------------------------// | |
// Code created by Developer's Daily // | |
// http://www.DevDaily.com // | |
//------------------------------------------------------------// |
View Machine.java
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; | |
public class Machine { | |
public Machine() | |
{ | |
this.status = MachineStatus.UNKNOWN; | |
} | |
public Machine(final int id, final int num, MachineStatus status) | |
{ | |
this.id = id; |
View Main.hx
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 net.zdremann.tmp.roundto; | |
import de.polygonal.core.fmt.Sprintf; | |
import de.polygonal.core.math.Limits; | |
import de.polygonal.core.math.Mathematics; | |
import haxe.Timer; | |
import nme.display.Sprite; | |
import nme.events.Event; | |
import nme.Lib; | |
#if !js |
View MacroCollection.hx
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 ; | |
/** | |
* ... | |
* @author Zachary Dremann | |
*/ | |
#if macro | |
import haxe.macro.Expr; | |
import haxe.macro.Context; |
View core-haxelib.json
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
{ | |
"name": "polygonal-core", | |
"license": "MIT", | |
"tags": ["cross", "utility"], | |
"description": "core library used by other polygonal libraries", | |
"contributors":"polygonal", | |
"version": "1.0.2", | |
"url": "https://github.com/polygonal/core", | |
"dependencies": { | |
"polygonal-ds":"" |
View haxelib.schema.json
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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"description": "A haxelib project", | |
"type": "object", | |
"properties": { | |
"name": { "$ref": "#/definitions/name" }, | |
"license": { | |
"description": "The open source license under which the project is licensed", | |
"enum": ["GPL", "LGPL", "BSD", "Public", "MIT"] | |
}, |
View multiple files.xml
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
<!-- strings_user.xml --> | |
<resources> | |
<string name="user_name">Name</string> | |
<string name="user_password">Password</string> | |
<string name="user_phone">Phone</string> | |
</resources> | |
<!-- strings_registration.xml --> |
View a.rs
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
// you can just use | |
// `pub mod b;` | |
// if this file is a/mod.rs and | |
// if you have a file named a/b.rs or a/b/mod.rs | |
// that contains the contents inside the curly brackets | |
pub mod b { | |
pub static bar: f64 = 1.1; | |
} | |
pub static foo: int = 40; |
View gist:77f6beb2e86687a4f325
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
//--------------- main.rs --------------------- | |
use a::b; | |
mod a; | |
mod c; | |
fn main() { | |
println!("{}", a::foo); | |
c::foobar(); |
View gist:1d683f2ce03a053d9b06
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
/* | |
Everything is in a single crate. The directory structure is as follows: | |
. | |
├── b | |
│ └── mod.rs | |
├── c | |
│ └── mod.rs | |
├── d | |
│ └── mod.rs |
OlderNewer