I hereby claim:
- I am akatakritos on github.
- I am akatakritos (https://keybase.io/akatakritos) on keybase.
- I have a public key whose fingerprint is 7776 FE10 C19C 552B A5D1 F36A 3F95 F777 B69E 743A
To claim this, I am signing this object:
<?php | |
/* | |
* Plugin Name: Root-based Category URLs | |
* Description: Enables root-based Category URLs, i.e. Makes /category/my-category/ URLs route as /my-category/ | |
* Author: Mike Schinkel | |
* Author URI: http://about.me/mikeschinkel | |
* Plugin URI: https://gist.github.com/1421235 | |
* Version: 0.1.1 | |
* License: GPL 2+ | |
*/ |
function devserver { | |
echo "ssh devserver -t 'cd $PWD; bash --login'" | |
ssh devserver -t "cd $PWD; bash --login" | |
} |
<script type="text/javascript"> | |
(function(){ | |
var realPushFunction = window._gaq.push; | |
window._gaq.push = function(params) { | |
if (params[0] == "_trackEvent") { | |
alert("category: " + params[1] + | |
"\naction: " + params[2] + | |
"\nopt_label: " + params[3] + | |
"\nopt_value: " + params[4]); | |
} |
module.exports = function(grunt) { | |
'use strict'; | |
grunt.initConfig({ | |
concat: { | |
options: { | |
banner: "/*\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT DIRECTLY, INSTEAD BUILD WITH grunt. \n * \n */\n", | |
nonull: true | |
}, | |
master: { | |
src: [ |
SELECT TOP (4) | |
[Project1].[ProductID] AS [ProductID], | |
[Project1].[Name] AS [Name], | |
[Project1].[Description] AS [Description], | |
[Project1].[Price] AS [Price], | |
[Project1].[Category] AS [Category] | |
FROM ( SELECT [Project1].[ProductID] AS [ProductID], [Project1].[Name] AS [Name], [Project1].[Description] AS [Description], [Project1].[Price] AS [Price], [Project1].[Category] AS [Category], row_number() OVER (ORDER BY [Project1].[ProductID] ASC) AS [row_number] | |
FROM ( SELECT | |
[Extent1].[ProductID] AS [ProductID], | |
[Extent1].[Name] AS [Name], |
I hereby claim:
To claim this, I am signing this object:
// (c) 2015 Microsoft Inc. | |
// All rights reserved | |
namespace HowOld.Common | |
{ | |
public static class Age | |
{ | |
public static int Calculate(byte[] imageData) | |
{ | |
return new Random().Next(2, 65); |
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Target Name="NotifyRollbarOfDeploy" AfterTargets="MSDeployPublish;CopyAllFilesToSingleFolderForPackage"> | |
<Exec Command="git log -1 --format=%%H" ConsoleToMSBuild="true" EchoOff="true"> | |
<Output TaskParameter="ConsoleOutput" PropertyName="GitSHA" /> | |
</Exec> | |
<Exec Command="git config user.email" ConsoleToMSBuild="true" EchoOff="true" WorkingDirectory="$(ProjectDir)\.."> | |
<Output TaskParameter="ConsoleOutput" PropertyName="GitEmail" /> | |
</Exec> | |
sln = Dir.glob("*.sln").first | |
msbuild = "/cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe" | |
desc "msbuild the solution" | |
task :build do | |
sh msbuild, sln | |
end | |
desc "runs nunit on valid UnitTests.*.dll assemblies" | |
task :test => [:build] do |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using Newtonsoft.Json.Linq; | |
namespace KenticoRestSample |