This is my awesome c code:
#include <stdio.h>
int main(void) {
return 0;
}
all: example | |
example: example.c | |
gcc example.c -lotr -o example | |
.PHONY: clean | |
clean: | |
rm -f example |
var blob = repo.ObjectDatabase.CreateBlob("index.txt"); | |
var treeDefinition = new TreeDefinition(); | |
treeDefinition.Add("index.txt", blob, Mode.NonExecutableFile); | |
var tree = repo.ObjectDatabase.CreateTree(treeDefinition); | |
var commit = repo.ObjectDatabase.CreateCommit("Hello World", | |
new Signature("name", "mail", DateTimeOffset.Now), | |
new Signature("name", "mail", DateTimeOffset.Now), | |
tree, new Commit[0]); |
using System; | |
namespace System | |
{ | |
public static class TimesExtensions | |
{ | |
public static void Times(this byte times, Action cb) | |
{ | |
times.Times((i) => { cb(); }); | |
} |
This is my awesome c code:
#include <stdio.h>
int main(void) {
return 0;
}
using System; | |
using System.Reflection; | |
using System.Linq; | |
namespace testing | |
{ | |
class DynamicDelegate | |
{ | |
public MethodInfo Method { get; protected set; } | |
public string Name { get; protected set; } |
#include <ncurses.h> | |
int main(int argc, char **argv) | |
{ | |
int i; | |
char buffer[512]; | |
initscr(); | |
nonl(); | |
cbreak(); |
using System; | |
using System.Collections.Generic; | |
using Manos.IO; | |
using Meebey.SmartIrc4net; | |
using SmartIrcBot4net; | |
namespace Test | |
{ | |
public class AdminPlugin : IrcBotPlugin |
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | |
<ProductVersion>10.0.0</ProductVersion> | |
<SchemaVersion>2.0</SchemaVersion> | |
<ProjectGuid>{34F9CC9C-7FA8-4C7C-B21B-139A0C1B56FD}</ProjectGuid> | |
<OutputType>Exe</OutputType> | |
<RootNamespace>ByteBufferCollection</RootNamespace> |
public static void Proposal1(Context context) | |
{ | |
// Old school C# style! | |
// Has the ability to actually remove those events afterwards!. | |
MySqlConnector.Connect(context, "test", "test", "password", (stream) => { | |
var cmd = stream.Query("SELECT name, surname FROM people where city = 'Aachen'"); | |
cmd.OnRow += (row) => { | |
Console.WriteLine("{0} {1}", row.name, row[1]); | |
}); | |
cmd.OnEnd += () => { |
namespace NiceParsing | |
{ | |
class MainClass | |
{ | |
public static void Main(string[] args) | |
{ | |
var packetWrapper = new { | |
Length = 3, | |
Number = typeof(byte) | |
}; |