Skip to content

Instantly share code, notes, and snippets.

@nrazon
nrazon / methodcount.bat
Last active August 26, 2015 12:01 — forked from mrsasha/methodcount.bat
.jar and .dex method count helpers for Windows. dx from build-tools in the Android SDK has to be in your PATH. Just call methodcount.bat "filename"
@ECHO OFF
IF "%1"=="" GOTO MissingFileNameError
IF EXIST "%1" (GOTO ContinueProcessing) ELSE (GOTO FileDoesntExist)
:ContinueProcessing
set FileNameToProcess=%1
set FileNameForDx=%~n1.dex
IF "%~x1"==".dex" GOTO ProcessWithPowerShell
REM preprocess Jar with dx
public class InviteList_Hydrated : AbstractIndexCreationTask<InviteList>
{
public InviteList_Hydrated()
{
Map = docs => from doc in docs select new { doc.Name, doc.Site.Id };
TransformResults = (db, docs) => from doc in docs
let Households = (
from hh in doc.Households
let household = db.Load<Archant.Wedding.Areas.AddressBook.Models.Household>(hh.Id)
@nrazon
nrazon / samsung_remote.py
Created February 11, 2012 21:23 — forked from danielfaust/samsung_remote.py
Samsung TV Remote Control Python Script
import time
import socket
import base64
src = '192.168.1.2' # ip of remote
mac = '00-AB-11-11-11-11' # mac of remote
remote = 'python remote' # remote name
dst = '192.168.1.3' # ip of tv
app = 'python' # iphone..iapp.samsung