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
require('open-uri') | |
class JGet | |
def self.GetVersion(ver) | |
script = ''; | |
open('http://ajax.googleapis.com/ajax/libs/jquery/'+ver +'/jquery.min.js') do |f| | |
f.each_line{|line| script << line} | |
end | |
return script | |
end |
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
<add key="CMSAzureAccountName" value="ENTER_ACCOUNT_NAME_HERE" /> | |
<add key="CMSAzureSharedKey" value="ENTER_PRIMARY_ACCESS_KEY_HERE" /> |
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
// Registers the custom module into the system | |
[assembly: RegisterModule(typeof(AzureMediaModule))] | |
public class AzureMediaModule : Module | |
{ | |
// Module class constructor, the system registers the module under the name "AzureMediaModule" | |
public AzureMediaModule() | |
: base("AzureMediaModule") | |
{ | |
} |
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
System.Diagnostics.Trace.TraceInformation("Information"); | |
System.Diagnostics.Trace.TraceWarning("Warning"); | |
System.Diagnostics.Trace.TraceError("Error"); |
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 EventLogApplicationInsightsConfig | |
{ | |
private static readonly TelemetryClient telemetryClient = new TelemetryClient(new TelemetryConfiguration("INSTRUMENTATION KEY")); | |
public static void ConfigureListener() | |
{ | |
EventLogEvents.LogEvent.After += LogToApplicationInsights; | |
} | |
private static void LogToApplicationInsights(object sender, LogEventArgs e) | |
{ |
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
Hello From Github! |
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 React from 'react'; | |
export default { | |
name: 'gist', | |
type: 'object', | |
title: 'Gist Embed', | |
fields: [ | |
{ | |
name: 'url', | |
type: 'url', |
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
// First, we must import the schema creator | |
import createSchema from 'part:@sanity/base/schema-creator' | |
// Then import schema types from any plugins that might expose them | |
import schemaTypes from 'all:part:@sanity/base/schema-type' | |
// document schemas | |
import author from './documents/author' | |
import category from './documents/category' | |
import post from './documents/post' |
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
export default { | |
name: 'bodyPortableText', | |
type: 'array', | |
title: 'Post body', | |
of: [ | |
{ | |
type: 'block', | |
title: 'Block', | |
// Styles let you set what your user can mark up blocks with. These | |
// corrensponds with HTML tags, but you can set any title or value |
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 React from 'react'; | |
import Gist from 'super-react-gist'; | |
const Preview = ({value : {url}}) => { | |
if(!url) return null; | |
return <div style={{height: "100px", overflowY: 'scroll'}}><Gist url={url} /></div> | |
} | |
export default { | |
name: 'gist', |
OlderNewer