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
import os | |
import unittest | |
import xmlrpclib | |
from google.appengine.datastore import datastore_stub_util | |
from google.appengine.ext import testbed | |
from webtest.app import TestApp | |
import main | |
class TestingHighReplicationConsistencyPolicy(datastore_stub_util.BaseHighReplicationConsistencyPolicy): | |
def _ShouldApply(self, txn, meta_data): |
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
(function ($) { | |
"use strict"; | |
var nextLinkRegex = /<a.* href='(.*)'>Older Posts<\/a>/g, | |
picturesRegex = /<a.*><img.*><\/a>/g, | |
$babyPictureList = $('#baby_pictures'); | |
(function scrapePictures(url) { | |
var nextUrl = null; |
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
There comes a time in every developer's life when it's time to move on. Sometimes it's your choice, sometimes the choice is made for you, either way you're going. This post is about how I've dealt with both situations. | |
Your Choice | |
So you've decided it's time for you to move on. | |
There are a few questions that you need some solid answers to first. | |
Why are you leaving? |
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
Class MfaImageConverter | |
Private sourceFileStream | |
Private sourceFileHexStream | |
Private convertedFileStream | |
Private convertedFileHexStream | |
Private Sub Class_Initialize() | |
Set sourceFileStream = CreateObject("ADODB.Stream") | |
sourceFileStream.Type = 1 ' Binary |
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.IO; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Ionic.Zlib; | |
namespace TestZlib | |
{ | |
class Program |
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
import curses | |
import random | |
class Life(object): | |
max_x = 200 | |
max_y = 60 | |
_grid = {} |
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
import random | |
import numpy | |
class Cell(object): | |
x = None | |
y = None | |
is_alive = None | |
_neighbors = None |
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 bash... | |
hg grep -r rev1:rev2 --all . | cut -d : -f 1 | sort -u | sed 's/^/-I /' | xargs echo hg archive |
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
namespace TestingApplication | |
{ | |
using CommandLine; | |
using CommandLine.Text; | |
public class Options | |
{ | |
[VerbOption("testverbone", HelpText = "Test Verb One.")] | |
public RssSubOptions RssVerb { get; set; } |
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
export PS1="(#\#) @ \d \t : \w \r\n->" |
OlderNewer