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
.data | |
prompt1: .asciiz "Enter the sequence index\n" | |
prompt2: .asciiz "The Fibonacci value is:\n" | |
.text | |
# Print prompt1 | |
li $v0, 4 | |
la $a0, prompt1 | |
syscall |
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
if (Platform.getMods().containsKey('ad_astra')) { | |
ServerEvents.tags('worldgen/biome', (e) => { | |
e.removeAll('ad_astra:has_structure/meteor_biomes'); | |
}); | |
} |
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
// Recipe fixes for Ad Astra. | |
(() => { | |
const MOD_NAME = 'ad_astra'; | |
const SUPPORTED_VERSION = '1.15.4'; | |
if (Platform.getMods().containsKey(MOD_NAME) && | |
Platform.getMods().get(MOD_NAME).getVersion() == SUPPORTED_VERSION) { | |
console.log('Applying fixes'); | |
setup(); | |
} else { |
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
// Recipe fixes for Cluttered. | |
(() => { | |
const MOD_NAME = "luphieclutteredmod"; | |
const SUPPORTED_VERSION = "2.1"; | |
if (Platform.getMods().containsKey(MOD_NAME) && | |
Platform.getMods().get(MOD_NAME).getVersion() == SUPPORTED_VERSION) { | |
console.log("Applying fixes"); | |
setup(); | |
} else { |
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.Collections.Generic; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; | |
namespace C3.XNA | |
{ | |
/// <summary> | |
/// </summary> | |
public static class Primitives2D |
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.*; | |
public class DlbDictionary implements DictionaryInterface | |
{ | |
// Constants | |
private final char TERMINATE_CHAR = '.'; // set this to whatever, but can't be a letter within English alphabet | |
// Fields | |
Node rootNode; // points to the 1st node on the 1st level. It does not have any peers, and only 1 child node | |
/** |
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
[Nemo Action] | |
Name=Open folder in Code - OSS | |
Comment=Open current folder in Code - OSS | |
Icon-Name=vscode | |
Selection=any | |
Extensions=any | |
EscapeSpaces=true | |
Exec=/bin/sh -c "cd %P && code ." | |
Dependencies=code; |
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
#!/bin/sh | |
# This script runs NPM using a version of node specified in nvmrc | |
# npm-nvm.sh <command> | |
# Examples: | |
# - npm-nvm.sh install | |
# - npm-nvm.sh run build | |
NPM_PREFIX=$(npm config get prefix) | |
npm config delete prefix |
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
/** | |
* A multisig wallet leveraging offchain communication channels | |
* to send signatures around that the owners don't have to | |
* pay any gas in the process. Only the recipient pays gas. | |
*/ | |
pragma solidity ^0.4.18; | |
contract Multisig { | |
event LogMoneySent(address to, uint amount); |
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
/** | |
* A mixing contract using one time pad | |
* Do not copy this code as it is not tested or audited. | |
*/ | |
pragma solidity 0.4.18; | |
contract MixingOTP { | |
address operator; | |
mapping(address => bool) payers; | |
mapping(address => bool) paid; |
NewerOlder