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
public byte[] GetRootFile () | |
{ | |
try | |
{ | |
StreamReader reader = new StreamReader (root + "index.html"); | |
string RootFile = reader.ReadToEnd (); | |
reader.Close (); | |
string ReplaceString = " Root<br/>"; | |
string[] Directories = Directory.GetDirectories (root, "*", SearchOption.AllDirectories); |
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 System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SplitsysOS_Source.Drivers | |
{ | |
public static class DriverPool | |
{ |
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 System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
using IO = SplitsysOS_Source.Core.PortIO; | |
namespace SplitsysOS_Source.Drivers | |
{ |
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; | |
// Stable | |
namespace System.Linq | |
{ | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
public static class LinqExtensions |
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
public static string ReadPassword () { | |
const char PLACEHOLDER = '*'; | |
var accum = new StringBuilder (); | |
while (true) { | |
var key = Console.ReadKey (true); | |
if (key.Key == ConsoleKey.Backspace) { | |
if (accum.Length > 0) { | |
accum.Remove (accum.Length - 1, 1); | |
Console.Write ("\b \b"); | |
} |
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
<?php | |
// Predefined actions | |
function emit_empty_200 ($params) { | |
// 200 OK | |
http_response_code (200); | |
return array (); | |
} | |
function emit_empty_404 ($params) { |
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
// The virtual screen width | |
let SCREEN_WIDTH = 64 | |
// The virtual screen height | |
let SCREEN_HEIGHT = 32 | |
// The CHIP8 font map | |
let font : byte array = | |
[| 0xF0uy; 0x90uy; 0x90uy; 0x90uy; 0xF0uy; | |
0x20uy; 0x60uy; 0x20uy; 0x20uy; 0x70uy; |
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 Iodine.Runtime; | |
using nginz.Common; | |
namespace nginz.Interop.Iodine.nginzcore | |
{ | |
public class GLBufferType : IodineObject, ICanLog | |
{ | |
readonly static IodineTypeDefinition typeDef; |
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.Text; | |
namespace System.Security.Cryptography | |
{ | |
public class WhirlpoolCryptoServiceProvider : HashAlgorithm | |
{ | |
#region Constants | |
const int R = 10; |
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
var crypto = require('crypto') | |
var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
function nextRand (lower, upper) { | |
'use strict' | |
return Math.floor(Math.random() * (upper - lower + 1) + lower) | |
} | |
function generateId () { | |
'use strict' |
OlderNewer