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
(ns composition.core | |
(:require [com.stuartsierra.dependency :as dep])) | |
#_(defprotocol Component ; an interesting thought | |
(dependencies [component]) | |
(constructor [component configuration])) | |
(defn using [dependencies constructor] | |
{::dependencies dependencies | |
::constructor constructor}) |
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
.workspace { | |
font-size: 15pt; | |
text-rendering: optimizeLegibility; | |
} | |
.tree-view { | |
font-size: 14pt; | |
} | |
.editor { |
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/bash | |
# adapted from http://stackoverflow.com/questions/4060212/in-linux-how-do-i-run-a-shell-script-when-a-file-or-directory-changes/20381373#20381373 | |
DIRECTORY_TO_OBSERVE="src" | |
BUILD_SCRIPT=./gradlew | |
function block_for_change { | |
inotifywait -r \ | |
-e modify,move,create,delete \ | |
--exclude ".*/build/.*" \ |
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 Livity.Collections; | |
using Livity.Composition; | |
using Livity.Text.Logic; | |
using Livity.Text.UI.Engine; | |
using Livity.Text.UI.Engine.Internal; | |
using UnityEngine; | |
namespace Livity.Mine | |
{ | |
[Export(typeof(IColorSchemeProvider))] |
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
namespace Spikes | |
import Boo.Lang.PatternMatching | |
import Boo.Lang.Compiler | |
import Boo.Lang.Compiler.Ast | |
import Boo.Lang.Compiler.MetaProgramming | |
class EnableResponsePatternAttribute(AbstractAstAttribute): | |
override def Apply(node as Node): | |
node.Accept(ResponseTransformer()) |
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 UnityEditor; | |
public class WindowStateIsLostWhenViewIsMaximized : EditorWindow { | |
[MenuItem("Window/Bugs/Window State Is Lost When View Is Maximized")] | |
static void Open() { | |
EditorWindow.GetWindow<WindowStateIsLostWhenViewIsMaximized>(); | |
} | |
string _state; |
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 Livity.Collections | |
import Livity.Composition | |
import Livity.Text.Data | |
import Livity.Text.UI.Commands | |
import Livity.Text.UI.Editor | |
import UnityEngine | |
[Export(IKeyboardModeProvider)] | |
class CustomKeyboardModeProvider(IKeyboardModeProvider): | |
Name: |
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 Boo.Lang.Compiler | |
import Boo.Lang.Compiler.Ast | |
import Boo.Lang.PatternMatching | |
class GenericAttribute(AbstractAstAttribute): | |
_parameters as ArrayLiteralExpression | |
def constructor(parameters as ArrayLiteralExpression): | |
_parameters = parameters |
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.Disposables; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Reflection; | |
using Funq; | |
using ServiceStack.Common.Web; | |
using ServiceStack.Service; |
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 class ObservableServiceClient : IObservableServiceClient | |
{ | |
private readonly string _baseUri; | |
public ObservableServiceClient(string baseUri) | |
{ | |
_baseUri = baseUri; | |
} | |
public IObservable<TResponse> ObserveMany<TResponse>(IReturn<IEnumerable<TResponse>> request) |