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
| const fs = require('fs'); | |
| class WavHeader { | |
| constructor() { | |
| this.sGroupId = ""; | |
| this.dwFileLength = 0; | |
| this.sRiffType = ""; | |
| } | |
| } |
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
| var open = ["(", "{", "["]; | |
| var closed = [")", "}", "]"]; | |
| function isMatched(str) { | |
| var stack = []; | |
| if (str === null || str === undefined) return false; | |
| if (str.length == 1 ) return false; | |
| for (var i = 0; i < str.length; i++) { | |
| var character = str[i]; |
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
| #include <stdio.h> | |
| int heap[1024]; | |
| unsigned long loc = 0; | |
| void* malloc(unsigned long size) { | |
| unsigned long oldLoc = loc; | |
| loc += size; | |
| void* ptr = &heap; | |
| return ptr + oldLoc; |
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
| # |
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
| // ******************************* | |
| // FILE: io.h | |
| // AUTHOR: SharpCoder | |
| // DATE: 2015-03-31 | |
| // ABOUT: This is the disk IO header. It must be implemented | |
| // in order for the filesystem to work. | |
| // | |
| // LICENSE: Provided "AS IS". USE AT YOUR OWN RISK. | |
| // ******************************* |
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
| // ******************************* | |
| // FILE: fs.h | |
| // AUTHOR: SharpCoder | |
| // DATE: 2015-03-31 | |
| // ABOUT: This is the primary raspberry pi file system that I | |
| // designed myself. It's meant to be short and sweet. | |
| // Probably not something I'd use in real life. | |
| // | |
| // LICENSE: Provided "AS IS". USE AT YOUR OWN RISK. | |
| // ******************************* |
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
| class Drawable | |
| constructor: (options) -> | |
| if !options? then options = {} | |
| # Destructuring to assign properties based on obj | |
| { | |
| @name | |
| @x | |
| @y | |
| @vx = 0 |
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
| // ******************************* | |
| // FILE: fs.h | |
| // AUTHOR: SharpCoder | |
| // DATE: 2015-03-31 | |
| // ABOUT: This is the primary raspberry pi file system that I | |
| // designed myself. It's meant to be short and sweet. | |
| // Probably not something I'd use in real life. | |
| // | |
| // LICENSE: Provided "AS IS". USE AT YOUR OWN RISK. | |
| // ******************************* |
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
| package com.debuggle.kale; | |
| import java.util.Date; | |
| import android.app.AlertDialog; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.content.DialogInterface.OnClickListener; | |
| import android.content.Intent; | |
| import android.net.Uri; |
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
| // Mining ships | |
| this.ships.push(new Ship({ | |
| title: 'Quarry', | |
| description: 'A Class-I mining vessel. Tattered and old, but she\'ll get the job done!', | |
| cost: 2000, | |
| attack: 0, | |
| defense: 20, | |
| hp: 100, | |
| miningIronMultiplier: 1.0, | |
| miningGoldMultiplier: 1.0, |