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.Collections.Generic; | |
namespace Extensions | |
{ | |
public static class EnumerablePaginationExtensions | |
{ | |
public static IEnumerable<IEnumerable<T>> Paginate<T>(this IEnumerable<T> items, int pageSize) | |
{ | |
var page = new List<T>(); | |
foreach (var item in items) |
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
.Switch (.If (.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._mainBorderFlipFlop || .Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._verticalBorderFlipFlop) { | |
.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._ec | |
} .Else { | |
.Block( | |
System.Int32 $var1, | |
System.Int32 $var2) { | |
$var1 = .If ( | |
.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._mcm && (.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._bmm | |
|| ($GColor & 128) != 0) | |
) { |
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
(function(){ | |
// --------------------------------------------------------------- | |
// INITIALIZATION | |
// --------------------------------------------------------------- | |
// initialize library | |
var lib = {}; | |
if (window.Must) { | |
lib = window.Must; |
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
(function(){ | |
// do not move this outside of the scope. | |
"use strict"; | |
// default options | |
var defaultOptions = { | |
// if true, allow null values | |
allowNull: false, | |
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
;------------------------------------------------------------------------------ | |
; [ efram chunk ] | |
; I wrote this because I needed something that could bank in/out the | |
; EasyFlash code, perform copies and memory swaps, and not occupy RAM | |
; where the game exists, all while fitting in the lower half of the | |
; page (because EasyAPI uses the upper half.) | |
; This starts at $DF03 to give us XBANK address at $DF00 and two | |
; variables to do whatever with at $DF01 and $DF02. Plus it fits nicely | |
; if you think of this as a jumptable entry address or something. | |
; (Don't mind my rants, these are notes to help ME think.) |
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; | |
namespace IocTest | |
{ | |
public interface IContainer | |
{ | |
void Register<TImplementation>(); |
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.Reflection; | |
using Autofac; | |
using Module = Autofac.Module; | |
namespace MyGist | |
{ | |
public enum EventChannel |
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
- Dragon Wheel reels - | |
Each reel is 32 symbols long. | |
- wheel 1 - | |
35102710625617204170324065302164 | |
- tally - | |
0: 6 | |
1: 5 | |
2: 5 |
OlderNewer