I hereby claim:
- I am kenegozi on github.
- I am kenegozi (https://keybase.io/kenegozi) on keybase.
- I have a public key whose fingerprint is 4233 DAB9 6173 B1E4 E3D0 6263 B290 B45A ABB9 35CD
To claim this, I am signing this object:
<add name="fcgi-golang" path="*.go" verb="*" modules="FastCgiModule" scriptProcessor="c:\w\playground\go-iis\std.exe" resourceType="Either" requireAccess="Read" /> | |
<fastCgi> | |
<application fullPath="c:\w\playground\go-iis\std.exe" | |
arguments="" | |
maxInstances="1" | |
idleTimeout="300" | |
activityTimeout="30" | |
requestTimeout="90" |
using System; | |
using System.Collections.Concurrent; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace GoPatterns | |
{ | |
class Program | |
{ | |
static void Main() |
I hereby claim:
To claim this, I am signing this object:
private func validateInputs() -> Bool { | |
let nonEmpty = { | |
(data:String!) -> Bool in | |
return count(data) != 0 | |
} | |
func inRange (min: Int!, max:Int!) -> (String!) -> Bool { | |
return { (data:String!) -> Bool in | |
let dataAsInt = data.toInt() | |
return (dataAsInt! >= min && dataAsInt! <= max) |
using System; | |
using System.Configuration; | |
using System.Collections; | |
using Castle.Components.DictionaryAdapter; | |
namespace Demo { | |
class MainClass { | |
public static void Main (string[] args) { | |
var ageString = (string)ConfigurationManager.AppSettings ["Age"]; |
c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe fix_crlf.cs | |
fix_crlf.exe |
using Manos; | |
using System; | |
using System.IO; | |
public class RandomAd : ManosApp { | |
public RandomAd () { | |
var ads = Directory.GetFiles(".", "*.gif"); | |
var random = new Random(); | |
Route ("/", ctx=> { |
// adding GeneralView class with IsCurrentUserAdmin bool field, | |
// Derive LayoutView from GeneralView | |
// Derive HomepageView and PostPageView from LayoutView | |
public ActionResult ViewPost(string permalink) { | |
var post = magic.GetPostBy(permalink); | |
var view= new PostView {Post=post}; | |
GetLayoutData(view); | |
view.Related = magic.GetContentRelatedTo(post); | |
Return View(view); |
var x = { | |
doThis : function() { console.log('doThis'); }, | |
whatIsThat : function(i) { console.log('whatIsThis'); return 'that is ' + i; }, | |
name : 'I am x' | |
}; | |
for (methodName in x) { | |
var method = x[methodName]; | |
if (typeof method !== 'function') continue; | |
x[methodName] = (function(method, methodName) { |
interface IDoWork { | |
void DoThis(); | |
string WhatsThat(int that); | |
} | |
class DoWork : IDoWork { | |
public void DoThis() { | |
Log.Action("DoWork.DoThis", () => DoThisImpl() ); | |
} |