This file contains 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
CFLAGS=-I/home/carlos/staging/libgit2/include -ggdb | |
all: checkout lowlevel | |
checkout: checkout.o | |
gcc -ggdb -o checkout checkout.o | |
lowlevel: lowlevel.o | |
gcc -ggdb -o lowlevel lowlevel.o -I/home/carlos/staging/libgit2/include -L/home/carlos/staging/libgit2/lib -lgit2 |
This file contains 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rugged' | |
require 'set' | |
def objects_in_tree(repo, tree, objs) | |
tree.each do |e| | |
objs << e[:oid] | |
if e[:type] == :tree then |
This file contains 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
package main | |
import ( | |
"io" | |
"fmt" | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, req *http.Request) { | |
req.ParseForm() |
This file contains 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
#define SLEEP_QUANTUM 10000 | |
#define SLEEP(n) do { \ | |
long time = n * 100000; /* wait() sleeps 10*n microseconds */ \ | |
while(time > SLEEP_QUANTUM) { \ | |
wait(SLEEP_QUANTUM); \ | |
time -= SLEEP_QUANTUM; \ | |
} \ | |
wait(time); \ | |
} while(0) |
This file contains 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 Gtk; | |
namespace builder | |
{ | |
class MainWin | |
{ | |
[Gtk.Builder.Object("window1")] Window window1; | |
public void OnToggled(object sender, EventArgs args) | |
{ |
This file contains 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
% make | |
Making all in sources | |
make[1]: Entering directory `/home/carlos/apps/webkit-sharp/sources' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/carlos/apps/webkit-sharp/sources' | |
Making all in sources/glue | |
make[1]: Entering directory `/home/carlos/apps/webkit-sharp/sources/glue' | |
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"webkitgtk-sharp\" -DPACKAGE_TARNAME=\"webkitgtk-sharp\" -DPACKAGE_VERSION=\"1.10.2\" -DPACKAGE_STRING=\"webkitgtk-sharp\ 1.10.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"webkitgtk-sharp\" -DVERSION=\"1.10.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/libsoup-2.4 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/i |
This file contains 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.Diagnostics; | |
using System.Collections.Generic; | |
using System.Linq; | |
using LibGit2Sharp; | |
namespace list | |
{ | |
class MainClass | |
{ |
This file contains 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
000000000045ad40 <p_open>: | |
45ad40: 48 81 ec c8 00 00 00 sub $0xc8,%rsp | |
45ad47: 49 89 d2 mov %rdx,%r10 | |
45ad4a: 84 c0 test %al,%al | |
45ad4c: 74 31 je 45ad7f <p_open+0x3f> | |
45ad4e: 0f 29 44 24 30 movaps %xmm0,0x30(%rsp) | |
45ad53: 0f 29 4c 24 40 movaps %xmm1,0x40(%rsp) | |
45ad58: 0f 29 54 24 50 movaps %xmm2,0x50(%rsp) | |
45ad5d: 0f 29 5c 24 60 movaps %xmm3,0x60(%rsp) | |
45ad62: 0f 29 64 24 70 movaps %xmm4,0x70(%rsp) |
This file contains 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 <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <stdarg.h> | |
int p_open(const char *path, int flags, ...) | |
{ | |
mode_t mode = 0; |
This file contains 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
#!/bin/bash | |
# It's no libgit2, but it's pretty useful | |
. $(git --exec-path)/git-sh-setup | |
cd_to_toplevel | |
require_clean_work_tree | |
set -e |
OlderNewer