- Clone this gist or click "Download Gist" on the right and extract the archive
- Copy the folder and its contents to somewhere 'safe' (i.e., where you won't delete it)
- Double click index.html to open the webpage in Safari
- Click the 'File' menu, then click 'Open in Dashboard...'
- Your screen will dim, and you can select the area you want to display in the widget
This file contains hidden or 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
| How to use serilog in ASP.NET Core 2.0 | |
| One of major changes core 2.0 compare to core 2 preview is how to registe logging. | |
| logging should be configged before website instanced. | |
| public class Program | |
| { | |
| public static void Main(string[] args) | |
| { |
This file contains hidden or 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
| angular.module('myApp', ['ngRoute']) | |
| .provider('Weather', function() { | |
| var apiKey = ""; | |
| this.getUrl = function(type, ext) { | |
| return "http://api.wunderground.com/api/" + | |
| this.apiKey + "/" + type + "/q/" + | |
| ext + '.json'; | |
| }; |
This file contains hidden or 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 Topshelf | |
| [<AutoOpen>] | |
| module Topshelf = | |
| open System | |
| open Topshelf.HostConfigurators | |
| open Topshelf.Runtime | |
| let configureTopShelf f = |
This file contains hidden or 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
| #include <event.h> | |
| #include <evhttp.h> | |
| #include <pthread.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <iostream> |