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/python | |
# -*- coding: utf-8 -*- | |
""" | |
SvnDumpToolEdit: SVN Dump content editor | |
SvnDumpToolEdit is a small script that allows to change single file nodes | |
within an SVN dump file. It automatically updates the Content-length attribute | |
for nodes and generates a new MD5 checksum when a file is changed. This ensures | |
that the SVN dump will always remain a valid dump file. |
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
From: Patrick Westerhoff <[email protected]> | |
Date: Mon, 9 Jul 2012 14:07:28 +0200 | |
Subject: [PATCH] Include committer name in last change. | |
diff --git a/gitweb.cgi b/gitweb.cgi | |
index 2bd0d29..fbb1659 100755 | |
--- a/gitweb.cgi | |
+++ b/gitweb.cgi | |
@@ -3170,9 +3170,10 @@ sub git_get_last_activity { | |
close $fd or return; |
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 RestSharp; | |
using System; | |
using System.Collections.Generic; | |
namespace Gw2ApiExample | |
{ | |
class Program | |
{ | |
public static void Main() | |
{ |
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 python3 | |
from itertools import groupby, chain | |
NONE = '.' | |
RED = 'R' | |
YELLOW = 'Y' | |
def diagonalsPos (matrix, cols, rows): | |
"""Get positive diagonals, going from bottom-left to top-right.""" | |
for di in ([(j, i - j) for j in range(cols)] for i in range(cols + rows -1)): |
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
// ==UserScript== | |
// @id stackexchange-election-primary-counter@poke | |
// @name StackExchange Election: Primary counter | |
// @namespace poke | |
// @version 1.5.2 | |
// @author Patrick Westerhoff | |
// @match *://*.stackoverflow.com/election* | |
// @match *://*.stackexchange.com/election* | |
// @match *://*.askubuntu.com/election* | |
// @match *://*.mathoverflow.net/election* |
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
// ==UserScript== | |
// @id stackexchange-chat-unstar-transcript@poke | |
// @name StackExchange Chat: Unstar from transcript | |
// @namespace poke | |
// @version 1.0.0 | |
// @author Patrick Westerhoff | |
// @include http://chat.stackoverflow.com/transcript/* | |
// @homepageURL https://gist.github.com/poke/d1fd6b5227efc5885cac | |
// @updateURL https://gist.githubusercontent.com/poke/d1fd6b5227efc5885cac/raw/stackexchange-chat-unstar-transcript.user.js | |
// @run-at document-end |
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
// ==UserScript== | |
// @id stackexchange-chat-mass-unstar@poke | |
// @name StackExchange Chat: Mass-unstar from the star list | |
// @namespace poke | |
// @version 1.2.0 | |
// @author Patrick Westerhoff | |
// @include *://chat.stackoverflow.com/rooms/info/* | |
// @include *://chat.stackexchange.com/rooms/info/* | |
// @include *://chat.meta.stackexchange.com/rooms/info/* | |
// @homepageURL https://gist.github.com/poke/ab25d627b2c4b02db6b8 |
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 python3 | |
import argparse | |
import asyncore | |
import email.header | |
import email.parser | |
import smtpd | |
def decodeHeader (value): | |
return email.header.make_header(email.header.decode_header(value)) |
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
Param([string] $Folder) | |
Write-Host 'Backdating files in folder' $Folder -ForegroundColor Green | |
Push-Location $Folder | |
git init | |
git commit --allow-empty -m 'Initialize repository' | |
Write-Host 'Looking for files: ' -NoNewLine -ForegroundColor Blue | |
$files = Get-ChildItem * -Recurse | ? { !$_.PSIsContainer } | sort LastWriteTime | |
Write-Host $files.Length -NoNewLine -ForegroundColor Yellow |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Guild Wars 2: Item search</title> | |
</head> | |
<body> | |
<div id="loader">Loading…</div> | |
<div id="app" style="display: none;"> |
OlderNewer