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; | |
namespace TestApp1 | |
{ | |
public static class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello"); | |
} |
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
https://adduplex.slack.com/files/U02CUR82F/FBGN0T943/liga_consolas.zip |
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/sh | |
# | |
# /etc/init.d/kibana4 -- startup script for kibana4 | |
# [email protected] 2015-02-20; used elasticsearch init script as template | |
# https://github.com/akabdog/scripts/edit/master/kibana4_init | |
# | |
### BEGIN INIT INFO | |
# Provides: kibana4 | |
# Required-Start: $network $remote_fs $named | |
# Required-Stop: $network $remote_fs $named |
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
{ | |
"name": "kibana", | |
"private": true, | |
"main": "startup.js", | |
"scripts": { | |
"start": "node startup.js" | |
}, | |
"dependencies": { | |
}, | |
"devDependencies": { |
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 SqlHelpers | |
{ | |
public static List<T> ToList<T>(this SqlDataReader reader) | |
{ | |
var properties = typeof(T).GetProperties().Select(x => x.Name); | |
List<T> result = new List<T>(); | |
while(reader.Read()) | |
{ | |
var instance = Activator.CreateInstance<T>(); | |
foreach(var p in properties) |
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 self = this; | |
type.eachTransformedAttribute(function(key, type) { | |
var transform = self.transformFor(type); | |
data[key] = transform.deserialize(data[key]); | |
}, this); |
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
App.PostSerializer = DS.RESTSerializer.extend({ | |
primaryKey: 'postId' | |
}); |
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
DS.WebAPISerializer = DS.RESTSerializer.extend({ | |
extractSingle: function (store, primaryType, payload, recordId, requestType) { | |
console.log(payload); | |
return this._super(store, primaryType, payload, recordId, requestType); | |
} | |
}); | |
DS.WebAPIAdapter = DS.RESTAdapter.extend({ | |
serializer: DS.WebAPISerializer |
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 HandlebarsBundleTransform : IBundleTransform | |
{ | |
public void Process(BundleContext context, BundleResponse response) | |
{ | |
var builder = new Ember.Handlebars.TemplateBuilder(); | |
var usTextInfo = new CultureInfo("en-US", false).TextInfo; | |
foreach (var assetFile in response.Files) | |
{ | |
var path = context.HttpContext.Server.MapPath(assetFile.VirtualFile.VirtualPath.Replace("/", "\\")); |