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
" Settings | |
set noautofocus | |
set cncpcompletion | |
set nosmoothscroll | |
set nohud | |
set autohidecursor | |
set typelinkhints | |
let scrollduration = 10 | |
let searchlimit = 40 |
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
/// <summary> | |
/// Obtain an interactive connection to a database inside redis using the default | |
/// database ID specified in the configuration. | |
/// </summary> | |
public IDatabase GetDefaultDatabase(object asyncState = null) | |
{ | |
return GetDatabase(configuration.DefaultDatabase ?? 0, asyncState); | |
} |
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 class ArgApplier | |
{ | |
static T ChangeType<T>(object[] vals, int index) | |
{ | |
if (vals == null || vals.Length <= index) | |
{ | |
return default(T); | |
} | |
var val = vals[index]; |
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
env.RegisterHelper("cms_image", (writer, context, args) => | |
{ | |
// ArgApplier from https://gist.github.com/freakingawesome/5d94d14c1110aa174343 | |
ArgApplier.Apply(args, (string name, int forceWidth, int forceHeight) => | |
{ | |
if (!string.IsNullOrWhiteSpace(name) && context.context.ContainsKey(name)) | |
{ | |
string src = context.context[name] as string; | |
// etc. | |
} |
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 Html exposing (..) | |
import Html.Events exposing (..) | |
import Html.Attributes exposing (..) | |
import StartApp | |
import Effects exposing (Never) | |
import Task | |
import Signal | |
app = | |
StartApp.start |
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 Signal | |
import Html exposing (..) | |
import Html.Events exposing (..) | |
type Action | |
= NoOp | |
type alias Model = | |
{ message : String } |
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 Signal | |
import Http | |
import Task | |
import Effects | |
import Html exposing (..) | |
import Html.Events exposing (..) | |
import Json.Decode | |
type Action | |
= NoOp |
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 Html exposing (..) | |
main = | |
let | |
line n = | |
div [] [ text <| "Line #" ++ (toString n) ] | |
in | |
div [] | |
<| List.map line [0..100] |
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
<html> | |
<body> | |
<script type="text/javascript" src="Main.js"></script> | |
<script type="text/javascript"> | |
var app = Elm.fullscreen(Elm.Main, { | |
scrollTop: document.body.scrollTop | |
}); | |
window.onscroll = function () { | |
app.ports.scrollTop.send(document.body.scrollTop); |
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 Html exposing (input, div, button, text, Html) | |
import Html.Events exposing (on, onClick, targetValue) | |
import Html.Attributes exposing (value, type') | |
import StartApp | |
import Task | |
import Signal.Time exposing (settledAfter) | |
import Time | |
import Effects exposing (Effects, Never) |
OlderNewer