Skip to content

Instantly share code, notes, and snippets.

View CodeDux's full-sized avatar
💥

Kristoffer Schroeder CodeDux

💥
View GitHub Profile
@CodeDux
CodeDux / test.cs
Last active January 7, 2020 14:47
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
{
foreach (var i in Fibonacci().Take(20))
{
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
charset = utf-8
[Makefile]
indent_style = tab
public static class BinaryOperations
{
public static bool GetBit(byte value, int position)
{
EnsurePositionIsInRange(position);
return (value >> position & 1) == 1;
}
public static void SetBit(ref byte value, int position, bool state)
{
@CodeDux
CodeDux / gist:3c7f24e665b4668fc269
Created August 9, 2014 01:55
son of obsidian'ish theme for Slack
#293134,#2F393C,#293134,#93C763,#2F393C,#81969A,#EC7600,#EC7600
#293134,#2F393C,#293134,#93C763,#2F393C,#81969A,#EC7600,#EC7600
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
namespace aspapi.Controllers
{
public class TaskApiController : ApiController
{
private readonly ITaskRepository taskRepository;
public TaskApiController()
{
taskRepository = new TaskRepository();
}