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
def seven_seg(x): | |
''' | |
_ _ _ _ _ _ _ _ | |
|_||_| ||_ |_ |_| _| _| || | | |
_||_| ||_| _| | _||_ ||_| | |
1111101101 = 1005 | |
1101110001 = 881 | |
1101111100 = 892 |
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.Text; | |
using System.Reflection; | |
namespace pyysharp | |
{ | |
public abstract class HtmlTag | |
{ | |
private static string TAB = " "; |
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.Runtime.InteropServices; | |
using System.Security.Principal; | |
namespace JakeWharton | |
{ | |
public class Impersonator : IDisposable | |
{ | |
private WindowsImpersonationContext ImpersonatedUser = null; | |
private IntPtr UserHandle; |
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 python | |
''' | |
Takes a GitHub service hook POST and automatically updates the associated repo. | |
''' | |
__license__ = ''' | |
Copyright 2009 Jake Wharton | |
hookpuller is free software: you can redistribute it and/or modify |
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 java.util.ArrayList; | |
/*** | |
* @name Expression Evaluator | |
* @author Jake Wharton | |
* @date 2005-11-07 | |
*/ | |
public class ExpressionEvaluator | |
{ | |
public static enum EXPRESSIONTYPE |
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 rcdict import * | |
class User: pass | |
class Group(Model): | |
name = StringField() | |
admin = ForeignKey(User) | |
#users = ReverseForeignKey(User) generated automatically | |
class User(Model): |
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 | |
import sys | |
import subprocess | |
GIT_PATH = '/usr/bin/git' | |
TRAC_ADMIN_PATH = '/usr/local/bin/trac-admin' | |
VALID_BRANCHES = ['master'] | |
TRAC_ENV = '/path/to/trac' |
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/perl -w | |
use strict; | |
use warnings; | |
use File::Basename; | |
use Getopt::Long; | |
######################################################### | |
# Flac to Mp3 Perl Converter - Terminal Edition | |
# Created by: Somnorific | |
# Based on: Scripts by Falkano and Nick Sklaventitis |
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 JakeWharton.Utilities | |
{ | |
public static class DataContextExtensions | |
{ | |
/// <summary> | |
/// Disable any lazy loading of table properties by magical reflection voodoo. | |
/// | |
/// See: http://stackoverflow.com/questions/3388276/disable-all-lazy-loading-or-force-eager-loading-for-a-linq-context | |
/// And: http://stackoverflow.com/questions/3396426/iterating-tables-in-a-context-and-the-properties-of-those-tables | |
/// And: http://stackoverflow.com/questions/3397843/how-to-determine-lazy-loaded-properties-at-runtime-on-a-linq-table |
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 com.jakewharton.utilities; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.preference.CheckBoxPreference; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.ImageView; | |
import com.jakewharton.wakkawallpaper.R; |
OlderNewer