Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| const ParentComponent = React.createClass({ | |
| getDefaultProps: function() { | |
| console.log("ParentComponent - getDefaultProps"); | |
| }, | |
| getInitialState: function() { | |
| console.log("ParentComponent - getInitialState"); | |
| return { text: "" }; |
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
| //http://stackoverflow.com/questions/13210663/how-to-order-knockout-bindings | |
| ko.bindingHandlers.chosen = { | |
| init: function(element, valueAccessor, allBindingsAccessor, viewModel) { | |
| var allBindings = allBindingsAccessor(); | |
| var options = {default: 'Select one...'}; | |
| $.extend(options, allBindings.chosen) | |
| $(element).attr('data-placeholder', options.default); |
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
| public class DeliminatorSeparatedPropertyNamesContractResolver : DefaultContractResolver | |
| { | |
| private readonly string _separator; | |
| protected DeliminatorSeparatedPropertyNamesContractResolver(char separator) : base(true) | |
| { | |
| _separator = separator.ToString(); | |
| } | |
| protected override string ResolvePropertyName(string propertyName) |
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
| reg add "HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 0 /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
| /* based on the docs at: https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide */ | |
| /* | |
| * LICENSE: MIT | |
| * AUTOHR: [email protected] | |
| */ | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; |
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
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| using System.Data.Entity; | |
| using System.Data.Entity.Core.EntityClient; | |
| using System.Data.Entity.Infrastructure; | |
| using System.Diagnostics; |
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
| Dictionary<string, string> options = new Dictionary<string, string>() | |
| { | |
| {"$select" , "ID" }, | |
| {"$expand" , "ProductDetail" }, | |
| {"$filter" , "Categories/any(d:d/ID gt 1)" }, | |
| {"$orderby" , "ID desc" }, | |
| {"$top" , "1" }, | |
| {"$count" , "true" }, | |
| {"$search" , "tom" }, | |
| }; |
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
| using System; | |
| using System.Threading.Tasks; | |
| class Program | |
| { | |
| static void Main() => new Program().Run().Wait(); | |
| async Task Run() | |
| { | |
| Console.WriteLine("Before Using"); | |
| await Async.Using(new Test(), t => |
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
| using System; | |
| using System.Threading.Tasks; | |
| using Xunit; | |
| namespace PuppeteerSharp.Extensions.Tests | |
| { | |
| public class Documentation | |
| { | |
| [Fact] | |
| public async Task download_Chromium() |
OlderNewer